shell copy directory and contents code example
Example 1: copy directory command in linux
$ cp -R <source_folder> <destination_folder>
Example 2: bash copy directory and all contents
cp -r /path/to/directory /path/to/location/new-name
$ cp -R <source_folder> <destination_folder>
cp -r /path/to/directory /path/to/location/new-name