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

相关推荐
lThE ANDE3 小时前
最完整版Linux安装Redis(保姆教程)
linux·运维·redis
不吃香菜学java6 小时前
Redis的java客户端
java·开发语言·spring boot·redis·缓存
captain3766 小时前
事务___
java·数据库·mysql
北漂Zachary6 小时前
四大编程语言终极对比
android·java·php·laravel
小江的记录本6 小时前
【网络安全】《网络安全常见攻击与防御》(附:《六大攻击核心特性横向对比表》)
java·网络·人工智能·后端·python·安全·web安全
郝亚军7 小时前
ubuntu通过samba,让win11可以访问其共享文件夹
linux·服务器·ubuntu
一个人旅程~7 小时前
旧电脑的“拯救者”?Linux Mint20.3是怎样适配软件硬件以及兼顾兼容与性能的平衡的?
linux·经验分享·电脑
农村小镇哥7 小时前
nginx服务器的介绍
运维·服务器·nginx
小夏子_riotous7 小时前
Docker学习路径——3、常用命令
linux·运维·服务器·学习·docker·容器·centos
嗑嗑嗑瓜子的猫8 小时前
Java!它值得!
java·开发语言