Skip to content

Commit 349b7fd

Browse files
authored
scp.md 添加实例
1 parent dc1d1b1 commit 349b7fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

command/scp.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ scp -r root@10.10.10.10:/opt/soft/mongodb /opt/soft/
5858

5959
**上传本地文件到远程机器指定目录**
6060

61-
```
61+
```bash
6262
scp /opt/soft/nginx-0.5.38.tar.gz root@10.10.10.10:/opt/soft/scptest
63+
# 添加断开 2222
64+
scp -rp -P 2222 /opt/soft/nginx-0.5.38.tar.gz root@10.10.10.10:/opt/soft/scptest
6365
```
6466

6567
复制本地`/opt/soft/`目录下的文件nginx-0.5.38.tar.gz到远程机器10.10.10.10的`opt/soft/scptest`目录。
@@ -73,4 +75,4 @@ scp -r /opt/soft/mongodb root@10.10.10.10:/opt/soft/scptest
7375
上传本地目录`/opt/soft/mongodb`到远程机器10.10.10.10上`/opt/soft/scptest`的目录中去。
7476

7577

76-
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
78+
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

0 commit comments

Comments
 (0)