天天看点

linux 远程服务器 上传和下载文件

下载文件至本地:

scp [email protected]_ip: remote_path local_path 

示例:

scp [email protected]:/home/lixi/baseline/context_attentive_ir-master/my_code/results/random_dev_candidates.txt /Users/milin/PycharmProjects/BaseLine/context_attentive_ir-master/my_code/results 

上传文件至服务器:

scp local_file_path/file @remote_ip:remote_file_path

继续阅读