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

相关推荐
nice_lcj52019 分钟前
【从零理解计算机网络 · 02】分层模型:别背 OSI 七层,看数据怎么被“打包“和“拆包“
java·后端·tcp/ip·计算机网络·面试·osi·分层模型
SimonKing1 小时前
给Deepseek Harness装上插件市场,从此插件无忧
java·后端·程序员
艾莉丝努力练剑1 小时前
【AI大模型接入SDK】C++的SessionManager 线程安全
java·开发语言·前端·c++·人工智能·学习·安全
aiotto资源分享2 小时前
Python 写 JSON 文件,程序中途退出会留下什么?
java·python·json·jsondecodeerror
咋的啥名都用不了呢~2 小时前
Linux项目部署6(安装Elasticsearch)
linux
RuoyiOffice2 小时前
SpringBoot3+Vue3 采购到付款:ERP、WMS与财务如何按同一来源协同
java·spring boot·架构·vue
光电笑映3 小时前
TCP 为什么可靠?从三次握手、滑动窗口到拥塞控制全面拆解(上)
运维·服务器·网络·udp
文丑颜不良啊3 小时前
LeetCode3261~3280题目解析
java·leetcode
代码不停3 小时前
Spring 原理
java·spring
飞奔的瓜牛3 小时前
Linux 下使用 OpenSSL 生成自签名证书完整指南
运维·服务器·nginx