how to copy a whole directory in linux code example
Example 1: copy folder linux command line
cp -R source_dir destination_dir
Example 2: copy folder in ubuntu
cp -r /path/to/directory /path/to/location/new-name
Example 3: copy directory command in linux
$ cp -R <source_folder>/* <destination_folder>