How To Copy Hidden Files On Linux

by lifeLinux on November 23, 2010

Q. Is there an easy way to recursively copy all files include hidden files in a directory to another directory?

A. Using rsync command is a better solution.

rsync -av --progress /source /destination

With:

-a: Archive Mode

-v: Verbose Mode

–progress: Show progress during transfer.

Another solution, you may also use cp command and pattern matches, type the following command:

cp -R ./[^.]* /destination

Related Posts:

Previous post:

Next post: