Scp

From Leechfinger
Jump to navigationJump to search

Secure Copy Protocol (SCP) is a command-line utility in Linux that securely copies files and folders between two Unix systems on a network. SCP uses Secure Shell (SSH) to authenticate systems and encrypt data, so the information is still encrypted even if traffic is intercepted.

Copy newest downloaded files

We wanted to transfer the latest 8 files we downloaded.

# scp $(ls -lt | head -8 | awk '{print $9}') 192.168.5.41:~/