Loading... **scp命令**用于Linux下进行远程拷贝文件的命令,和它类似的是cp,不过cp只能在本地拷贝而不能夸服务器,而且scp的传输是加密的. #### 从远端复制文件到本地 ```shell scp user@192.168.x.x:~/hello.txt ~/dir ``` #### 从远端复制文件夹到本地 ```shell scp -r user@192.168.x.x:~/hello ~/dir ``` #### 上传本地文件到远端 ```shell scp ~/hello.txt user@192.168.x.x:~/dir ``` #### 上传本地文件夹到远端 ```shell scp -r ~/hello user@192.168.x.x:~/ ``` Last modification:February 8th, 2021 at 07:09 pm © 允许规范转载