If you want to transfer a file, you don't need the parameter -r , and the folder uses the parameter -r
syntax: scp [可选参数] 原地址 目的地址
I will demonstrate the file transfer below:
scp -r [email protected]:/data/disk/20200520/yonyou_nc /data/nccode/
After execution, enter the password of the corresponding server:
More parameter commands:
Like if you like ❤!