Skip to main content

Posts

Showing posts from December, 2017

[Linux] scp command Tutorial

Example: Examples Copy one single local file to a remote destination scp /path/to/source-file user@host:/path/to/destination-folder/ So, if you wan to copy the file  /home/user/table.csv  to a remote host named  host.example.com  and copy there to jane's home folder, use this command. scp /home/user/table.csv jane@host.example.com:/home/jane/ Copy one single file from a remote server to your current local server scp user@host:/path/to/source-file /path/to/destination-folder Let's say now you want to copy the same file from jane's home folder in  host.example.com  to your local home folder. scp jane@host.example.com:/home/jane/table.csv /home/user/ Copy one single file from a remote server to another remote server With  scp  you can copy files between remote servers from a third server without the need to ssh into any of them, all weight lifting will be done by  scp  itself. scp user1@server1:/path/to/file user2@serve...