Copy folder with files to another folder in Unix/Linux

To add that folder to the new folder do:

cp -R path_to_source path_to_destination/
Below is more likely what you want to do

To copy everything inside the source folder (symlinks, hidden files) without copying the source folder itself use -a flag along with trailing /. in the source

cp -a path_to_source/. path_to_destination/

Leave a Reply

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