Copy files and directories
Copy the entire contents of a directory. Using a dot at the end of the source directory indicates that everything within the directory should be copied, including hidden files.
cp -a /tmp/wordpress/. /var/www/wordpress
Copy and rename a file:
cp program3.cpp homework6.cpp