scp command to copy a directory in linux code example Example: scp folder scp -r [email protected]:/path/to/foo /home/user/Desktop/