Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

1 Answer

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 '
do
   sudo chflags hidden $ff
done

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
add comment

Your Answer

 
discard

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.