Show hidden files in the OS X Finder

Every once in a while I need to make an update to an .htaccess file on a server share or some other dot-file that is normally hidden by the Finder. Instead of editing the file in the terminal with the vi editor—a perfectly appropriate solution, of course—it's a pretty simple tweak to make the Finder show all of those hidden files.

Just open a Terminal window and run the following:

# defaults write com.apple.finder AppleShowAllFiles -bool true
# KillAll Finder

One thing you might notice after enabling the hidden file option, aside from all those insidious .DS_Store files, is that all of the file icons will take on a hazy, 50% alpha look. I've gotten used to it, but it's a little annoying. To switch things back, just set the AppleShowAllFiles parameter back to false:

# defaults write com.apple.finder AppleShowAllFiles -bool false
# KillAll Finder

Like I said... perfectly appropriate to edit stuff with vi from the terminal window.


Recent Entries

Comments

Oldest comments listed first.

Posted by: Anonymous on December 5, 2007 at 11:55 PM

I prefer view and edit hidden files in my FTP app (Transmit for example) as FTP applications mostly show them by default: it's easy and quick.

d43.


Posted by: Lucas Arruda on December 11, 2007 at 6:52 PM

Also, onyx for Leopard (not yet approved, but functional) does this with a checkbox.


Posted by: Jauhari on January 8, 2008 at 7:58 PM

The Problem, on my FTP Client (Transmit) my .htaccess disappear too. how to make it visible on other application but disable on Finder?

Thanks


Posted by: uh oh on January 17, 2008 at 3:56 PM

for some reason, it locked me out of my desktop. Can't click anything on it. Says I don't have premission. I am an admin as well. Tried disabling didn't work. Suggestions?


Leave a comment


Subscribe to MAKE!Subscribe to MAKE Magazine!

Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.

$34.95 / 1 year
(4 Quarterly Issues)

Subscribe now


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out. Make: The risk-takers, the doers, the makers of things... Welcome to Make: Online!


CRAFT Maker Shed Maker Faire MAKE television
Holiday Gift Guides from MAKE
Gifts for Dads
Science and Chemistry
Gifts Under $20
More guides: Santa Claus Machines, Geek Toys for Grown Up Girls & Boys


Check out all of the episodes of Make: television

Alex Rider Dream Gadget Contest
Make: Science Room

Connect with MAKE

Be a MAKE fan on Facebook MAKE on Facebook
Visit our Facebook page and become a fan of MAKE!
MAKE on Twitter MAKE on Twitter
Follow our MAKE tweets!
MAKE Flickr Pool MAKE on Flickr
Join our MAKE Flickr Pool!
    make_tips on Twitter




    Maker SHED

    Advertise here with FM.

    Why advertise on MAKE?
    Read what folks are saying about us!

    Click here to advertise on MAKE!



    Subscribe to MAKE Magazine!

    Make: Online authors!

    Gareth BranwynGareth Branwyn
    Senior Editor


    Phillip TorronePhillip Torrone
    Senior Editor
    | AIM | Twitter


    Becky SternBecky Stern
    Associate Editor
    | AIM | Twitter


    Marc de VinckMarc de Vinck
    Contributing Writer
    | AIM | Twitter


    John ParkJohn Park
    Contributing Writer
    | Twitter


    Sean RaganSean Ragan
    Contributing Writer
    | Twitter


    Matt MetsMatt Mets
    Contributing Writer
    | AIM | Twitter


    Dale DoughertyDale Dougherty
    Editor & Publisher
    | Twitter


    Shawn ConnallyShawn Connally
    Managing Editor
    | Twitter


    Goli MohammadiGoli Mohammadi
    Associate Managing Editor

    Kip KayKip Kay
    Weekend Projects
    | AIM | Twitter


    Collin CunninghamCollin Cunningham
    Contributing Writer
    | AIM | Twitter

    Adam FlahertyAdam Flaherty
    Contributing Writer
    | AIM | Twitter



    More contributors: Mark Frauenfelder (Editor-in-Chief, MAKE magazine), Kipp Bradford (Technical Consultant/Writer), Chris Connors (Education), Diana Eng (Guest Author), Peter Horvath (Intern), Brian Jepson (O'Reilly Media), Robert Bruce Thompson (Science Room)

    Suggest a Site!

    Current Podcast

    itunesdl.gif Weekend Project: Beetlebot Simple robot from your parts bin that avoids obstacles. Thanks go to Jerome Demers for the original article in MAKE, Volume 12. To download the Beetlebot video, click here or subscribe in iTunes. Check out the complete Beetlebot article... More...

    Get the Make: Online sent via email
    Enter your email to receive Make: Online each day:



    MAKE Fascination video series brought to you by Dow

    Make: Education
    MAKE: en EspaƱol MAKE: Japan
    Important please read


    Subscribe to MAKE Magazine!

    Recent Posts from the Craft: Blog