SCP command to transfer files/folders in Linux
Basic syntax of SCP
scp source_file_name username@destination_host:destination_folder
user@localhost ~/Documents $ scp -v email@example.com:.
Copy a Directory Recursively using SCP
I often need to quickly copy a directory from one Linux machine to another. An easy command to accomplish the task is the SCP (Secure Copy) command. Here's the general format of a recursive copy.
scp -r [/local/path/] [user@host]:[/remote/path]
The -r switch causes scp to copy recursively....