Using SCP command to transfer folder from local machine to remote machine

We use SCP command to transfer/copy files/folders to remote machine to a specified location, in the following way. Execute the commands from your local machine.

Copy a file:

[dilushi@debian ~]$ scp examplefile yourusername@server:/home/yourusername/

Copy the whole directory, use -r option:

[dilushi@debian ~]$ scp -r directoryname yourusername@server:/home/yourusername/ .



Reference

Comments

Post a Comment

Popular posts from this blog

Sniffing GSM traffic with hackRF

Save recorded data with hackRF to a .raw file