linux copy directory with contents code example
Example 1: how to copy directory to another directory in linux
cp -r <DIRECTORYPATH> <WHEREYOUWANTTOCOPYTO>
#for example
cp -r /home/thor/asia/india/bangalore /home/thor/
Example 2: copy directory command in linux
$ cp -R <source_folder>/* <destination_folder>