linux copy from terminal to file code example
Example 1: copy file in linux command line
cp [OPTION] Source Destination
cp [OPTION] Source Directory
cp [OPTION] Source-1 Source-2 Source-3 Source-n Directory
Example 2: how to copy file in ubuntu terminal
cp ~/Downloads/your-file.txt ~/Documents/