Bash and Linux 5 · Files and directories

Move or rename a file

Move a file, or rename it by giving a new name in the same folder.

mv old-name.txt new-name.txt

Official Bash and Linux 5 documentation

More files and directories commands

All files and directories commands · Bash and Linux 5 cheatsheet

Was this page helpful?