From ad3c46c0091d2bc6280c227567c546fbda82276e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=95=AC=E5=9F=B9=E5=85=A8?= <42208852+LongYinStudio@users.noreply.github.com> Date: Wed, 18 Dec 2024 09:27:02 +0800 Subject: [PATCH] doc: Update linux-command.md (#907) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat: 新增rsync技巧 --- docs/linux-command.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/linux-command.md b/docs/linux-command.md index 9850adc3..88baa163 100644 --- a/docs/linux-command.md +++ b/docs/linux-command.md @@ -348,6 +348,7 @@ Linux 命令速查表 **`for file in $(ls); do sed -i 's/nmg/sz/g' "$file"; done`** | 当前目录修改字符串 **`ssh -NfR remote_port:localhost:local_port user@remote_server`** | ssh代理 **`find . -wholename "*.sh" -exec dos2unix {} \;`** | 修复脚本格式错误 + **`rsync -avz /source/ user@remote:/destination/`** | 同步文件和目录到远程服务器,支持压缩和增量传输 另见