terminal.cab
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.

Command of the day No. 10: mv to rename. Purpose: Gives a file a new name without copying it. Example: mv Documents/report.txt Documents/report-2026.txt; ls Documents. Caution: If the new name is taken, mv replaces that file without asking. Check first: ls folder shows whether the new name is still free. Remember: Renaming is moving within the same folder.
The same card as an image, 1080 x 1350 pixels.

Today's card ยท All cards so far