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

for some reason my /opt /private folders are not hidden anymore while the rest of my finder's hidden files are. What would cause these to be visible again, and how do I change them back? I know it has something to do with permissions, or fixing it might involve using "chflags"command.

update: so I fixed it after some searching around by using chflags

sudo chflags hidden /opt /private

though Im still curious what caused these files to change. Do you think it would have anything to do with developer tools or SDKs? I recently installed a bunch for mobile testing/development

share|improve this question
up vote 2 down vote accepted

This little ditty might help...

for ff in '/Network /Volumes /bin /cores  /etc 
  /mach /mach_kernel /private /sbin /tmp /usr /var '
   sudo chflags hidden $ff

You'll want to add in /opt if you added that and any other non-standard directories in / you wish to hide from the GUI.

As to why - you might need to track that down using fs_usage, but typically it's an installer that brute forces permissions or otherwise removed the metadata flags from those files.

share|improve this answer
oh nice! thanks bmike for the info – fady Jul 7 '11 at 20:17

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.