Secure copy (remote file copy program) `scp` is a program for copying files between computers. It uses the [[Secure Shell (SSH)|SSH protocol]]. It is included by default in most [[Linux]] and Unix distributions.^[https://www.ssh.com/academy/ssh/scp] ```bash scp [options] /path/to/file1 /path/to/file2 username@remote_server:/path/to/destination ``` ## Flags • `-P` \[port]: Specify the SSH port if it’s not the default (22). • `-r`: Recursively copy directories (useful if files are inside folders). • `-C`: Compress data during the transfer for faster speed. ## Examples ```bash scp /Users/ethan/Documents/file1.txt /Users/ethan/Documents/file2.txt [email protected]:/home/username/files/ ```