Linux / UNIX scp Copy Hidden . (Dot) Files

by on November 9, 2010 · 0 comments· last updated at 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/. user@server2.cyberciti.biz:/path/to/dest/
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 user@server2.cyberciti.biz:/path/to/dest/



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , ,

Previous Faq:

Next Faq: