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.

I use this command quite often to show hidden files on my machine:

defaults write com.apple.Finder 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
add comment

1 Answer

up vote 1 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
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.