Linux file copy FAQ: How do I copy Linux files and directories? (Or, Can you share some cp command examples?)
You use the Linux cp command to copy Linux files and directories. Let's look at some copy examples to see how this works.
Using Linux cp to copy files
At its most basic, here's how you copy a Linux file:
cp Chapter1 Chapter1.bak
This cp command copies the original file named Chapter1 to the new file named Chapter1.bak. After issuing this command both your original file and the new file will be in the current directory.