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 use this command quite often to show hidden files on my machine:

defaults write AppleShowAllFiles YES

Is there a way to show all hidden files only in specific directories. E.g. I want to be able to see stuff like .ssh

However I don't want my desktop and every folder to show this damn .DS_Store files. Is there a trick to so?

thank you

share|improve this question
up vote 2 down vote accepted

If you want to hide specific files/folders from Finder (and any Open/Save dialogs) there is always

chflags hidden FILENAME

If, on the other hand, you only want to make specific dot-files/directories (like .ssh or .bashrc) visible in Finder, you may be better of with creating non-dotted symlinks

ln -s .bashrc bashrc
ln -s .ssh ssh

and using them to access the files where needed.

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.