Sunday, December 28, 2014

scp copy folder

Linux command scp option -r recursively copy entire directories.  Note that scp follows sym‐bolic links encountered in the tree traversal.


To copy folder from Linux host to Raspberry Pi (or any Linux machine) user home, enter the command:
$ scp -r testscp pi@192.168.1.107:

where testscp is the folder to be copied.

or
$ scp -r testscp pi@192.168.1.107:newfolder

where newfolder will be created.


No comments: