copy file and paste in linux 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: copy and paste file in linux shell
# use cp for copy pasting BOTH files and folders in linux shell
cp source_file target_file
cp source_dir target_dir