Linux – copy all files from one folder to another with hidden (.dot) files

Simple, use:

cp -r /source/. /destination

This command will transfer all files including hidden ones (for example I usually need .htaccess for my sites to be transfered as well).

Leave a Reply

Your email address will not be published. Required fields are marked *