How to ReName a File or Folder in Mac OS X

Mar 18, 2010 - 27 Comments

rename file folder mac os x Renaming a folder in Mac OS X is very easy, and there’s a few different ways you can do it. We’ll focus on the three most common tricks to quickly rename any file or directory folder on the Mac, two of which are done through the familiar graphical interface of the Finder file system, and another which is a bit more advanced for technically inclined users who like the command line approach.

Method 1: Rename a file or folder by selecting it and hitting the ‘return’ key

Just click on the icon of the file/folder from the OS X Finder, and then hit the return key, then type in the new name. This is quick and simple, and likely the most traditional method of renaming on the Mac.

Method 2: Rename a file or folder by selecting it and clicking on the filename with your cursor

Super simple and done through the Finder, here’s what you want to do: after you have selected the icon, click on the actual filename text and hover for a moment with the mouse cursor, you’ll see the text highlight which indicates that you can then rename the item. Type in the new name, then hit return or click away with the mouse cursor to set the change.

Advanced Method 3: Rename a file or folder via command line

The command line is a bit more advanced, but you can also rename any file or directory via the Terminal. To do this from the command line, type the following syntax replacing with your files and filenames as desired:

mv oldfilename newfilename

A note on file extensions: be aware when renaming certain files that changing the file extension (.jpg or .txt, etc) can effect the behavior of that file and how applications respond to it. Generally speaking, you should leave the file extension the same.

I realize this is pretty rudimentary stuff to many of our readers, but two recent switchers have asked me this question so surely they can’t be alone in wondering, both were trying to do the Windows right-click -> rename method which is sure to cause some confusion in Mac OS X.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: William Pearson in Mac OS X, Tips & Tricks

27 Comments

» Comments RSS Feed

  1. daedana says:

    Nice tricks even though I knew these, but these are something that you just use, use and use after learning.

  2. BeckleMic says:

    Thanks very much. I have been a switcher for over a year now, and to change a file name I have been using the “Get Info” mini menu option. I always knew there was an easier way but just could not figure it out. Great stuff

    • Lisa says:

      That’s exactly what I’ve been doing. Switched to Macs at work 14 months ago and just now learned I don’t have to do it the cumbersome “Get Info” way!

  3. Steve Zoni says:

    I have never seen this before. I have always been able to change the name the way you described, however, this folder “Projects” will not let me change the name. I tred going into the Info mini menu as described and could not see an option to change the name either.

    Thanks,

    S

  4. Armando says:

    @Steve Zoni,

    I’m guessing that the folder is locked or has restrictions beyond what you have permission to edit. The easiest way to change the name of a locked folder or file is by using the Administrator account on the Mac, or by going into the terminal and using sudo like:

    sudo mv Project OldProject

    which will require an admin password but will definitely change it

    hope that helps

    armando

  5. Cat_se7en says:

    It’s also worth setting up an automator action to batch rename files, and adding it as a “service” so that it can be accessed via the drop-down menu in the Finder.

  6. Syd Salmon says:

    If you need to rename many folder &/or files, you can use the AppleScript Utility. Check off “Show Script menu in menu bar.” Under Finder scripts, you will a variety of scripts to help you manage files and folders more efficiently.

  7. fitch shirt says:

    I’d like to subscribe for your great RSS feeds.nevertheless i can’t uncover any right here.Do may possibly good RSS feeds for being applied?cheers,Anna

  8. Pete says:

    Nice tip, but in addition, you can’t rename a shared file, until its been ‘unshared’.

    Took me a while to figure that out, but makes sense….

  9. Vincent says:

    Thanks, had my mac for 10 years and could never figure out how to name an untitled folder……thanks to you I now know!!!! Duhhhhh!!!

  10. Fred says:

    Thanks :) I would never have found out!

  11. […] file extension remains consistent with the files format, and unlike renaming things in the Finder you can’t accidentally change the file extension […]

  12. George says:

    Thank you. For years I have been frustrated by not knowing how to do this.

  13. anna says:

    Would someone clarify this for me? If I rename a picture that is a .jpg, say, IMG_334.jpg to sally’s birthday 08, do I have to have no spaces and leave the .jpg, or does title not affect file format that way? It may be a silly elementary question, but hope someone can let me know! Thanks!

    • Paul says:

      file name title does not effect the file format, though if you have file extensions shown and you try to change it, the Finder will warn you.

  14. srinivas says:

    In my mac a name of file is -old is created it self in trash when i go to open another by same name file opend in trash like this folders are generated continously but it is not totally deleted in trash.How to deleted permanantly from trash

  15. tj4jones says:

    wow, that worked. you can click on the folder once and enter to allow renaming.

  16. SDe says:

    Hi Everyone,

    I am a New Switcher and I would like to first say, I have been using PC’s for quite some time and I taught myself everything that I believe was needed to not only navigate and execute through them and softwares, as well as repair and upgrade them hardware wise as well, and I just decided recently, through many times just hemming and Horning, to make the Switch to Mac and have only dabbed into and around it for just about 1 week now, and let me just finish up in saying, “I Will Never Go Back.” It far Superior to PC’s in Every Single aspect imaginable and I just suggest to anyone who is or was on the fence as I, just be Patient and Learn it, through Great forums such as this and search engines.

    In regards to original question and poster, I can definitely see the need for choosing multiple files and or folders to move, copy, or delete, yet i just have Never had the Need to rename multiple files or folders at the same time and i believe that there are many that will attest to that as well, yet on the other hand I am firm believer in: If everyone was Plumbers, then we would not Electricians, as each and everyone has there own wants and needs, yet in this world of ours: Majority Always Rules, and Apple just did not see or hear of any Great Need to rename multiple files and or folders in their software as a A Shortcut and I emphasize Shortcut because the following is a way to do what you want:

    Holding down the Left Clicker of your mouse drag all in the middle of each Icon what you want to choose and once you have done that, then Right Click on any Icon and choose: Get Info and each and every folder will then open up in a small description view window. Once you are there, merely navigate down on each window to: Name & Extension and then rename them there.

    In renaming One Icon and or Folder, which I know is way of life for PC and Mac users and a necessity, you can do it a few ways, One: Pick the file or folder you want by Left Clicking it and Highlighting it and then hit: enter/Return and then rename it. Two: Left Click the file or folder and Highlight it, then left Click it again and rename it, and Lastly: The multiple file or folder way, which I described above.

    I hope this somehow Helped you and anyone else who may need it and remember: No One ever became Great or Good by just asking for answers, it is OJT (On the Job Training) that makes that happen, by getting your Head and Hands into the Game!!!

    From just what i have shortly seen, there is A Whole BIG World of Good things on the Mac side and you need to just be Patient and Not make First Hand Irrational Statements, as I Try to live my Life by This One saying which is: Don’t Lose your Head to Gain a Minute, You Need Your Head Your Brains are in It!!! If we act on and make decisions on mere emotions then they will Usually be the Wrong One Always. Relax and Think Things Through Thoroughly before you REACT!!!

    Thanks Everyone for a Great Venue and the very Best to All my Fellow Mac’rs!!!
    SDe

  17. Carmen says:

    for those of us who are not “tech-savy”…but have a MAC computer…and used to always use PCs…how the heck do you change file names??? It used to be you could just highlight the file name…for example if I created a file in Microsoft WORD…I could look it up…right click on the name and then find “rename” in my menu options and then change the name and be done. Nice, simple and easy. Now I can’t do that with a MAC. If I follow those SIMPLE steps…there is NO “rename” menu option ANYWHERE. And, like with a PC…you can’t click on the file name you want to change until you get the blinking cursor behind your file name and change it that way either. So…what … in simple terms…do you do? Everyone also talks about how user friendly a MAC is vs PCs…but there are little things like this…that often times are NOT easy and NOT user friendly! Ugh…help! ;o)

    • Derrick says:

      Simply double-click the name — a quick double click — and if not right-click and press Get Info and in the box you should be able to change the name.

  18. Prem Dass says:

    Thank you very much, your post was very helpful for me. again thank you very much.

  19. Vlad says:

    Thanks. It helped me.

  20. Nilesh Parmar says:

    IS there any way using automator to create a hot watched folder. to change file names within the folder, say i had a file BR13 and i want all to be BR14. Can this be done automatically?

  21. Surabhi says:

    Thanks so much for the tip!! V.useful!!

  22. Ben says:

    This “answer” is exactly why I hate Macs. I never had to look up how to rename files on a Windows computer. Right click, choose rename file, and move on. Since switching a Mac a few years ago, when I need to rename a file I find it’s completely non-intuitive. It kills me that one has to wander the internet in search of “answers” on how to do a basic function.

  23. hannahs says:

    do you know how to change the author and title name in get info?
    because whatever you put in name & extensions is just renaming the outside file not the internal file name.
    is there a way to change the album name, title name and authors??

  24. Charles Black says:

    I am using OSX Yosemite 10.10.1 . Question. How do I obtain an “Administrater Password “? I am the sole user of my OSX. I am asked for it when I try to get into “Terminal”
    Please Help!!!

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates