scp copies files to a remote machine. It is a secure and encrypted
substitute for rcp. For example,
scp MyLetter.tex venus: copies
the file MyLetter.tex from the host
jupiter to the host venus. If the
username on jupiter is different than the username on
venus, specify the latter using the
username@host format. Do not use -l
option for specifying username with this command, it has a different
meaning.
After the correct password is entered, scp starts the data transfer. The
program displays the estimated time of arrival to the right of the progress
bar. Suppress all output by giving the option -q.
scp also provides a recursive copying feature for entire directories. The
command scp -r src/ venus:backup/
copies the entire contents of the directory src
including all subdirectories to the backup directory
on the host venus. If this subdirectory does not exist
yet, it is created automatically.
The option -p tells scp to leave the time stamp of files
unchanged. -C compresses the data transfer. This minimizes
the data volume to transfer, but creates a heavier burden on the processor.