Linux常用命令

主要使用在编译服务器中,一般还有samb一起使用

1.ssh

查看ssh:cat ~/.ssh/id_rsa.pub

ssh-keygen -t rsa -C "主机名"

git config --global --add "user.name" XX

git config --global --add "user.email" xx

touch .ssh/config

vi config

chmod 755 ~/.ssh/

chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub

chmod 644 ~/.ssh/known_hosts

2.查找文件

在当前目录查找文件并写入文件

find -name "*-cat-meminfo*" | xargs grep -rn "MemAvailable" > result.txt

3.copy文件:copy/rcopy

相关推荐
m0_587383001 小时前
广州 24 小时自助健身房解决方案技术实现与实战指南
java·spring·小程序·架构·需求分析
曦夜日长1 小时前
Git系统篇,Git本地使用(一):从“究极进化版“到三个区域的底层原理
大数据·linux·git·elasticsearch
·云扬·1 小时前
Prompt 工程与安全:从 System 设计到注入防御
java·人工智能·安全·ai·prompt
mengchanmian2 小时前
VSFTP 服务器搭建(Centos)
运维·服务器·centos
shimly1234562 小时前
给断网无 sudo ubuntu22.04 机器安装 nodejs
linux
代码不停2 小时前
自动化测试(java)
java·开发语言·selenium·自动化
别动我齐刘海3 小时前
Linux 系统调试学习1
linux·运维·服务器·c++·学习·机器学习·机器人
Lsetea4 小时前
OpenSSL报certificate chain too long:error 22与verify_depth深度排查
linux·https·ssl证书·openssl·证书链
鬼手点金4 小时前
opencode-rules 插件
java·开发语言·前端·人工智能·chrome·git·github
不像程序员的程序媛5 小时前
linux常见文本操作命令
linux·运维·服务器