how to copy a folder and contents in linux code example
Example 1: copy folder linux
cp -R dir1 dir2
Example 2: copy contents of directory to another directory linux
cp -a /source/. /dest/
cp -R dir1 dir2
cp -a /source/. /dest/