- No.
- 10
- Date
- Learning goal
- Terminal Start, lesson 6
- Level
- 1 of 3
Command of the day No. 10: mv to rename
Purpose: Gives a file a new name without copying it.
Syntax: mv old-name new-name
Example:
mv Documents/report.txt Documents/report-2026.txt
ls Documents
notes.txt report-2026.txt Output from the simulator, as on a real Linux.
Options:
Try it in the terminal Share image
Fills in the command. Nothing runs until you press Enter.