cpstep 1 of 7
Copy a file
cp copies a file. Give it the file to copy, then where the copy should go:
$ cp downloads/report-final.pdf documentsWhen the destination is a folder, the copy keeps its name and goes inside. When it’s a new name, the copy gets that name: cp notes.txt notes-backup.txt makes a second file called notes-backup.txt.
Your turn, in the terminal
- Copy report-final.pdf from downloads into documents