Copy files from one linux machine to another

Published: 13 years ago

It's fairly easy to transfer files from one Linux server to another using the scp command.

An example

scp -pv user@123.456.78:source-file.tar /home/user/source-file.tar

Options

-p Preserves the modification and access times, as well as the permissions of the source-file in the destination-file

-q Do not display the progress bar

-r Recursive, so it copies the contents of the source-file (directory in this case) recursively

-v Displays debugging messages

Note

To use this command you need to have open-ssh installed in the hosts.

comments powered by Disqus
:?>