linux copy folder and its contents to anoter folder code example
Example 1: copy contents of directory to another directory linux
cp -a /source/. /dest/
Example 2: linux copy folder with files
cp -R path_to_source path_to_destination/
cp -a /source/. /dest/
cp -R path_to_source path_to_destination/