CS-FreeStyle / 10000-How-To-Do-in-CS

1 stars 0 forks source link

copy from server to local: scp #115

Open liuty10 opened 4 years ago

liuty10 commented 4 years ago

https://unix.stackexchange.com/questions/188285/how-to-copy-a-file-from-a-remote-server-to-a-local-machine

scp /file/to/send username@remote:/where/to/put

scp username@remote:/file/to/send /where/to/put

scp username@remote_1:/file/to/send username@remote_2:/where/to/put

scp username@source:/location/to/file username@destination:/where/to/put

liuty10 commented 4 years ago

If it is a folder, you should use "-r": scp -r username@remote:/file/to/send /where/to/put