Thursday, December 17, 2009

Show all files in finder

I needed to restore some files in /private/etc after deleting them. I know I should have had a backup before the delete, but I didn't. Anyway, to restore with time machine, you need to see the files in finder.

Open terminal and execute:
  • defaults write com.apple.Finder AppleShowAllFiles YES
  • sudo killall Finder
That's it, you can now see your hidden files. To revert:

defaults write com.apple.Finder AppleShowAllFiles NO
sudo killall Finder

Creds goes to these folks.

No comments: