Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

How to show hidden files and folders in Mac OS X

Viewing Hidden Files and Folders is extremely easy, well that is if you are using Windows Operating System, as you can just select view hidden files and folder option in it to toggle the display, but I did not even recognise that there are hidden files and folders in Mac OS.

Until recently when I hot unplugged a Portable HDD from the Smart TV, When I connected it to my computer I found that some folders are missing but the available the disk space hasn’t changed. Which means the files on the disk are still there.

So at this time I remembered that there are Hidden Folders and Files, so I just opened my Terminal checked the Directory Listing (ls) for that Drive there I saw various files and folder that where not displayed in the Finder app.

How to view Hidden Files and Folders

Files and Folders in root directory (/)

As you can see in the above image in the terminal we can dozens of various files and folders whereas in the same location in the Finder application there are only six visible folders, rest of them are all hidden.

So to view the Hidden Files and Folder we need to just run this code in the terminal

defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app

Whereas to once again hide them just run the following code :

defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app

Repeating this process everytime you want to hide and display hidden files and folders is just not productive and waste of time. So you can just create new alias in terminal and use them everytime you want to hide and show hidden file and folders.

Creating alias to Show hidden files and folders

  1. Open Terminal App
  2. In Terminal open .bash_profile file using your favourite text editor
    vim .bash_profile
  3. Add the following code in the file (to insert press i if you are using vim)
    # Alias for show and Hide hidden files in MacOSX
    alias showFiles="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app"
    alias hideFiles="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app"
    
  4. Now save the file. (if you are using vim then type :wq)
  5. Now refresh the file in terminal by entering the following code in the terminal
    source .bash_profile
  6. Now whenever you want to view hidden files and folders just type showFiles in the terminal and hideFiles to hide them once again.

With this you can view hidden Files and Folders whenever you want. Well this solution is a little difficult for users who hardly every uses terminal.

So I also found an Application for Mac which does this little trick nicely, that application is called Funter the application is extremely useful for everyone even if you are good with terminal as it gives you the option to search inside hidden files and folders.

Subscribe via Email

Share this:

  • Twitter
  • Facebook
  • Pocket
  • Print
  • WhatsApp
  • Email

Related

August 2, 2016 Ritesh Sanap Linux, Solutions Finder, Mac, Terminal

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation

Previous Previous post: How to Disable Emojis in WordPress
Next Next post: HTTP2 Server Push for W3 Total Cache Minify plugin

Currently Trending

  • How to download Specific parts of YouTube videos
  • How to Change the Welcome/Login Screen in Windows XP ?
  • h4x0r ( Hacker ) - Blogger Template
  • Windows Vista CD key
  • Add/Remove page/Post View Counter Widget For Blogger
  • Free Online Angry Birds game
  • How to Make Your Own Avatar
  • How to Download Documentation for offline viewing - Dash
  • How To Change Windows XP Shutdown Dialog Box

Get Latest post in your Inbox

Random Posts

Windows 8 slows down on 100% disk usage and Freezes

January 2, 2014 By Ritesh Sanap 2 Comments

How to have a professional email address

May 31, 2010 By Ritesh Sanap Leave a Comment

Change WordPress From Email Address

March 4, 2011 By Ritesh Sanap Leave a Comment

Make a Navigation Bar with Automatic Highlighted Current Links

April 2, 2010 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2023 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean