cmd copy folder ubuntu code example
Example 1: copy folder in ubuntu
cp -r /path/to/directory /path/to/location/new-name
Example 2: copy directory command in linux
$ cp -R <source_folder>/* <destination_folder>
cp -r /path/to/directory /path/to/location/new-name
$ cp -R <source_folder>/* <destination_folder>