SCP - Secure Copy (over a network)
 
Notes
- scp user@host1:file1 user@host2:file2
- To copy the file "foo" in my home directory on the myth server to a new file "foo" in my current directory: scp samking@myth.stanford.edu:foo foo
- To copy the file "foo" in my current directory into my home directory on the myth server: scp foo samking@myth.stanford.edu:foo
- Just like with SSH, You can leave out your username if your local username is the same as your remote username. So, if my current username is samking, scp samking@myth:foo foo is the same as scp myth:foo foo.
- Just like with cp, file2 doesn't have to have the same name as file1. You can name file2 whatever you want.