linux copy folder and all subfolders code example
Example 1: copy folder ubuntu
$ cp -r /source_directory /destination_directory
Example 2: copy folder linux
cp -R dir1 dir2
$ cp -r /source_directory /destination_directory
cp -R dir1 dir2