copy directory and subdirectories linux code example
Example 1: copy directory command in linux
$ cp -R <source_folder> <destination_folder>
Example 2: how to copy directory to another directory in linux
cp -r <DIRECTORYPATH> <WHEREYOUWANTTOCOPYTO>
cp -r /home/thor/asia/india/bangalore /home/thor/
Example 3: copy directory command in linux
$ cp -R <source_folder_1> <source_folder_2> ... <source_folder_n> <destination_folder>
Example 4: copy directory command in linux
$ cp -R <source_folder>/* <destination_folder>