Move or rename a file or directory.
Section: Files and Directories
Move or rename file
bash
bash
mv old-name.txt new-name.txtExplanation
Also used to move files between directories.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Files and Directories