linux cp directory command code example
Example 1: copy directory command in linux
$ cp -R <source_folder> <destination_folder>
Example 2: copy folder in ubuntu
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