linux copy directory with all contents with directory code example
Example 1: copy contents of directory to another directory linux
cp -a /source/. /dest/
Example 2: bash copy directory and all contents
cp -r /path/to/directory /path/to/location/new-name
Example 3: linux copy all directory contents to another directory
rsync -a source/ destination