Show or hide hidden files in Finder of Mac OSX

In Terminal, type these commands:

To show:

defaults write AppleShowAllFiles TRUE

killall Finder

To hide:

defaults write AppleShowAllFiles FALSE

killall Finder

Solution originally posted by Brooks on March 23, 2007 at


One Comment

  1. Posted May 23, 2009 at 1:03 pm | Permalink

    If you want to hide a certain file or folder in the way of the classic Mac OS, you may use the SetFile command of Mac OS X:

    To hide a file or folder, type:
    SetFile -a V filename

    To show a file or folder, type:
    SetFile -a v filename

%d bloggers like this: