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

On my ML MBP, '/opt' is somehow 'hidden'. In the finder, it shows in gray. In various applications, it's invisible from a file selection dialog box. Get Info and ls -l show now flags that corresponds to this behavior. Is there any way to turn it off?

share|improve this question
Do you have the Finder set to display invisible files? – Max Ried Sep 19 '12 at 13:01
up vote 2 down vote accepted

Out of the box, there is no /opt file delivered by OS X.

This command will show the hidden status of files in root ls -lO / with O being the capital letter, not zero. The chflags command can be used to toggle the hidden flag if needed.

Depending on how you got /opt created, you may or may not have issues with the permissions changing again - most tools leave things alone with respect to filesystem flags as long as the read/write/execute permissions are not removed.

share|improve this answer

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.