copy folder contents from one directory to another in ubuntu code example Example: copy folder in ubuntu cp -r /path/to/directory /path/to/location/new-name