$ mv
Move or rename files and directories
DOCUMENTEDFiles & directoriesUbuntu 24.04 LTS baseline
Synopsis
mv [OPTION]... SOURCE... DIRECTORY
What it does
- `mv` can rename a file or move it to another directory.
- When the source and destination are on different filesystems, the operation may be implemented as a copy followed by removal.
Examples
Rename a file
mv old.txt new.txtMove a file
mv report.txt documents/Move several files into a directory
mv *.log logs/Important details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.