How do I copy a file between different Unix systems?
% scp -p sourcepath targetpath % scp -p sourcehost:sourcepath targethost:targetpath % scp -p sourceuser@sourcehost:sourcepath targetuser@targethost:targetpath The -p option preserves file timestamps, which is nearly always a good idea, since that is your only clue about when the file contents were last modified. If there are more than two arguments, all but the last are source files, and the last must be a target directory. % scp -p sourcepath1 sourcepath2 … targetdir % scp -p sourcehost:sourcepath1 sourcehost:sourcepath2 … targethost:targetdir % scp -p sourceuser@sourcehost:sourcepath1 sourceuser@sourcehost:sourcepath2 … targetuser@targethost:targetdir The source and target files are identified by a filepath, or a hostname and filepath, or a username, hostname, and filepath, as shown in the examples. By naming two hosts other than your current host, you can involve three machines in the transfer. The command will prompt for a password if necessary, but passwords are not needed f