how cp a direcrotry code example
Example 1: copy folder linux
cp -R dir1 dir2
Example 2: copy folder in ubuntu
cp -r /path/to/directory /path/to/location/new-name
cp -R dir1 dir2
cp -r /path/to/directory /path/to/location/new-name