copy a file using terminal in linux code example
Example 1: copy all files from a folder to another ubuntu
cp -a ./source/. ./dest/
Example 2: how to copy file in ubuntu terminal
cp ~/Downloads/your-file.txt ~/Documents/
cp -a ./source/. ./dest/
cp ~/Downloads/your-file.txt ~/Documents/