Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I frequently use and edit config files inside /etc on OS X Lion. I would like to be able to access this dir in Finder easily, but don't want to unhide hidden files system-wide using defaults write AppleShowAllFiles.

Anyone know how?

share|improve this question
What files do you edit here as Apple has tended to move config elsewhere so only old Unix files are there - if you do this often aren't you using the terminal a lot. – Mark Jun 21 '12 at 12:25
Hi Mark. It's usually to edit apache config files when setting up vhosts, ssl certs etc. It's a lot of cut and paste work which I find far easier to do in GUI text editors than terminal. Often I want to 'save to' something in /etc/apache2 from within an application too. – Mere Development Jun 21 '12 at 13:43
up vote 3 down vote accepted

Enable ShowAllFiles one more time, long enough to drag /etc onto your Finder sidebar. From then on, /etc will be available in Finder and in Open and Save As dialogs, regardless of ShowAllFiles.

share|improve this answer
Also a very good idea! thanks! – Mere Development Jun 27 '12 at 21:37

On my system running Lion (10.7.4), the command sudo chflags -h nohidden /etc revealed the /etc folder at the top level of my hard drive.

The -h flag to chflags makes it act on a symbolic link rather than on the linked file.

The man page for chflags states "Unless the -H or -L options are given, chflags on a symbolic link always succeeds and has no effect." The behavior I observe when I run it is not consistent with this description: I very much do see an effect when I run chflags on this particular symlink.

If that solution doesn't work for you, or if you don't want to make /etc visible to all users on your system but you do want to easily navigate there in the Finder and in Open, Save, etc. dialog boxes, you could run a command like ln -s /etc ~/etc. That would create a (visible) symbolic link to the /etc directory in your home directory. When you double click it, it would open the /etc directory (actually the /Private/etc directory because /etc is a symlink thereto in OS X).

share|improve this answer
That symlink to /etc idea is excellent! Such a good idea I didn't need to try your first solution. thanks! – Mere Development Jun 27 '12 at 21:32
I can confirm that the sudo chflags -h nohidden /etc command still works in Yosemite - thanks – Robert Petz Sep 12 '15 at 18:36

Although its not exactly what you want, you could make an Application with Automator.

To do so:

  • Open Automator.
  • Select Work Flow.
  • Select Run Shell Script and type open /etc.
  • Hit Save and choose Application as the format.

You will, then, be able to open the etc folder by double clicking the Application you've just created.

share|improve this answer
Thanks, that's an idea, but I often want to be able to save to or open from /etc/* from within apps (Apache configs and SSL certs etc) – Mere Development Jun 21 '12 at 13:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.