cp command lets you copy one or more files or directories. To be clear, the
cp command makes a duplicate copy of your information, whereas the
mv command moves your information from one location to another.
Let's take a look at some Linux cp command examples.
Simple file copying
Using a Linux or Unix system, to copy a file named "foo" to a new file named "bar" just type: