Show hidden files on Mac OSX

Ever needed to show those hidden files in Finder? I’ve tested this successfully in both Snow Leopard and Lion.

  1. Throw these two lines in your ~/.bash_profile (if it doesn’t exist, just create it)
  2. alias sf="defaults write com.apple.Finder AppleShowAllFiles true; killall Finder"
    alias hf="defaults write com.apple.Finder AppleShowAllFiles false; killall Finder"
    
  3. Reload your .bash_profile. From within terminal:
  4. . ~/.bash_profile
    
  5. Type sf to show all hidden files
  6. Type hf to hide all typically hidden files
This entry was posted in General. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>