Belajar Sendiri

Commands

mv

mv <from> <to>

Risk: Careful

What it does

Moves or renames a file or folder. It replaces a file with the same name without asking.

When to use it

To rename things or put them in the right room.

Example

$ mv draft.txt promo.txt

Rename the draft.

$ mv *.jpg photos/

Move every photo into photos.