Madproject

Always know where your towel is.

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

Leave a Reply

Your email address will not be published. Required fields are marked *