Lessons
04Copy, move and delete
0 of 7 tasks

Lesson 04 · about 12 min · 7 tasks

Copy, move and delete

Rearrange your files with confidence, and delete them without regret.

step 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 documents

When 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
mapfolders appear as you explore
/ …
home/ …
you/◂ you are here
nowCopy report-final.pdf from downloads into documents
terminal
Practice terminal. Nothing you do here touches your real computer.
Type help to see what it understands.
you@terminal-mastery:~$