Sometimes, instead of moving a file, you'll want to make a copy, and move that copy somewhere else. The cp
command is useful for this. cp test.txt test2.txt
will copy the test.txt
file, and create a new file called test2.txt
with the contents of test.txt
.
Instructions
- Copy the file at
/home/dq/test/test.txt
to/home/dq/test/test2.txt
.
cp test/test.txt test/test2.txt