Archive for the ‘Unix’ Category

Helpful Unix Commands – SCP

SCP is useful to securely copy a file or directory from one Unix server to another Unix server.

After logging into one Unix server, type the following command to copy a directory from the currently logged on server to serverB:

scp -p -r file_name serverB:/dir/test/

The -p parameter copies the permissions, and -r copies recursively for a directory.