how to copy a file with all of its contents in linux terminal 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/