Linux终端操作积累

scp命令在服务器上传下载文件

2019-01-19  本文已影响0人  Solomon_Xie
#Copy a local file to a remote host:
scp path/to/local_file remote_host:path/to/remote_file

#Copy a file from a remote host to a local folder:
scp remote_host:path/to/remote_file path/to/local_dir

#Recursively copy the contents of a directory from a remote host to a local directory:
scp -r remote_host:path/to/remote_dir path/to/local_dir
上一篇 下一篇

猜你喜欢

热点阅读