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/ .



Post a Comment

Popular posts from this blog

Getting started with Programming ESP8266- ESP07 modules

Install Requirements for GSM band observation with hackRF