How to copy all of the files from one directory to another
An alternate is rsync
rsync -r source/ destination
The advantages of rsync are:
- After the initial sync, it will then copy only the files that have changed.
- You can use it over a network, convenient for files in $HOME, especially config files.
Use rsync command line instead in different way
rsync -auv dir1/ dir2/
will synchronize recursively all files from the folder dir1 into the folder dir2, with permission etc.
to get more explanation to know how to use this comand line.