1.上傳文件到服務器
a.首先進入到自己文件的上一級路徑
比如我想要上傳的文件路徑在桌面
cd Desktop
b.使用scp上傳文件
格式爲scp 文件名 服務器地址 你想上傳的服務路徑
scp bert.zip [email protected]:python
注意一下文件要是一個文件夾就先壓縮成壓縮包,不然會提示not a regular file,然後在服務器上用unzip解壓即可
unzip bert.zip
2.服務器文件下載
下載文件夾
scp -r 遠程登錄服務器用戶名@遠程服務器ip地址:/下載文件夾的目錄 本地目錄
scp -r [email protected]:python/bert/output output
下載文件
scp 遠程登錄服務器用戶名@遠程服務器ip地址:/下載文件的目錄 本地目錄
scp [email protected]:python/bert/output/test_results.tsv test_results.tsv