In order to rename a file using Mac Terminal make use of the mv (move) command.
Example:Suppose I have a file name myfile.txt on the Mac Desktop and I want to rename it to myfile_2020.txt then below are the steps,
- Open Mac Terminal,
- Move to the Desktop: cd ~/Desktop
- Now to rename the file run the mv command,
Syntax:mv current-file-name new-file-name% mv myfile.txt myfile_2022.txt - The file will be renamed with myfile_2022.txt

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!


Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!