- Published on
Short engineering note
Today I Learnt: Move or rename files with mv
- Authors

- Name
- Mehdi Akiki
Note · Engineering notes
Rename or move a file:
mv oldname.txt newname.txt
mv file.txt /path/to/dest/
Use mv -i to ask before overwriting, or mv -n to leave an existing destination untouched.