mv [options] source... destinationArguments explained
- source is the file or directory to move.
- destination is the new path or target directory.
- -i asks before overwriting.
- -n avoids overwriting existing files.
Common examples
mv draft.txt final.txtChanges the filename in the current directory.
mv *.log ~/logs/Moves matching log files into ~/logs.
| Field | Details |
|---|---|
| Command | mv |
| Category | File and Folder Operations |
| Primary use | Moves or renames files and directories. |
| Syntax | mv [options] source... destination |