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

Save recorded data with hackRF to a .raw file

Listen to FM radio with HackRF and SDR