Linux / UNIX scp Copy Hidden . (Dot) Files

by on November 9, 2010 · 1 comment· LAST UPDATED November 9, 2010


How do I copy all hidden files from $HOME using scp command line tool?

scp is secure remote copy program which copies files between hosts on a network. The correct syntax to copy all hidden files using scp is as follows:
$ scp -rp /path/to/source/.
You need to append a dot to the end of the source so that it will copy all files. A better solution is to use the rsync command as follows:
$ rsync -av --progress /path/to/source

Tweet itFacebook itG+ itDownload PDF versionFound an error/typo on this page?

{ 1 comment… read it below or add one }

1 Jess August 28, 2014 at 12:34 pm

This doesn’t work. Neither solution copied the .bashrc


Leave a Comment

Tagged as: , , , , , , , ,

Previous Faq:

Next Faq: