Module 1 · Linux: the 20 everyday commands · Lesson 3 of 16
Make, copy, move and delete: mkdir, touch, cp, mv, rm
Create folders and files, copy and rename them, and delete safely.
In this lesson · about 22 minutes
- Create folders with mkdir (and mkdir -p) and empty files with touch
- Copy files and folders with cp and cp -r
- Move and rename with mv
- Delete with rm and rm -r, knowing there is no undo
Key terms
Say the meaning to yourself, then tap a card to check.
Copy versus move
cp notes.txt documents/ leaves notes.txt where it was and puts a second copy in documents. mv notes.txt documents/ takes the original and puts it in documents: there is still only one.
If the destination is an existing folder, the file keeps its name and goes inside. If the destination is a new name, you get that name: mv todo.md todo-old.md renames in place.
Why rm needs respect
When you delete with the mouse, the file goes to a bin you can empty later. rm skips the bin: the file is gone. rm -rf folder deletes a folder and everything inside without asking. Professionals pause and read the command once more before pressing Enter, and run ls on the same path first to see what would be removed.
Whiteboard · watch and try
cp and mv, side by side
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Practice terminal · missions
Tidy up Sam's home folder
Sam wants a folder for recipes, a proper archive, and fewer duplicate downloads. Watch new items flash in the file picture.
Missions 0 of 9
- 1Create a folder called recipes in your home folder.
- 2Create an empty file called shiro.txt inside recipes.
- 3Create the folders archive/2026/november in one command.
- 4Copy notes.txt into documents, naming the copy notes-backup.txt.
- 5Copy the whole projects/website folder to projects/website-backup.
- 6Rename todo.md to todo-this-week.md.
- 7Move downloads/report-final-v2.pdf into documents.
- 8Delete the old duplicate downloads/report-final.pdf.
- 9Delete the projects/website-backup folder you made.
Type a command and press Enter. Try help to list commands. Tab finishes names, ↑ repeats.
- ~ (/home/sam)you are here
- documents
- budget-2026.csv
- letters
- thank-you.txt
- meeting-notes.txt
- resume.pdf
- downloads
- installer.zip
- report-final-v2.pdf
- report-final.pdf
- logs
- access.log
- app.log
- old
- app-2026-09.log
- app-2026-10.log
- notes.txt
- photos
- beach.jpg
- cat.png
- trip
- day1.jpg
- day2.jpg
- projects
- website
- index.html
- style.css
- scripts
- backup.sh
- hello.shruns
- todo.md
This picture updates as you type. Changed items flash. runs = executable, a name badge = owned by someone else.
Sorting drill
Which command?
Pick the right command for each job.
- Make a new folder for invoices
- Create an empty README file
- Keep the original and make a backup copy
- Rename draft.txt to final.txt
- Delete a log file you no longer need
- Put a photo into another folder without leaving a copy behind
0 of 6 sorted
Check your understanding0 of 4 correct
Quiz score: 0 of 4
Written by Noviq Academy in its own words. The practice terminal is a simulation that runs in your browser: it imitates Linux (Ubuntu-style output) and Git closely, but it is not a real computer, and real output can differ slightly. The servers, people, web addresses and GitHub addresses in the labs are made up. Linux is a trademark of Linus Torvalds; Git and GitHub belong to their owners. Read-aloud uses your device's built-in voices.