Last Updated: September 09, 2019
·
3.028K
· dbraga

Quick show/hide hidden file in Mac OS X

I like to have an alias to quickly switch between hide/show hidden files mode in my finder.
Just type this in your terminal:

echo 'alias hhf="defaults write com.apple.finder AppleShowAllFiles FALSE;killall Finder"
alias shf="defaults write com.apple.finder AppleShowAllFiles TRUE;killall Finder"' >> ~/.bashrc && . ~/.bashrc

This will

- add hhf and shf to as aliases to your barshrc
- reload your finder to load the new setting
- reload the bashrc

From now on you can use
hhf to hide your hidden files from the finder
shf to show your hidden files from the finder

Cheers!

2 Responses
Add your response

a good job~thanks

over 1 year ago ·

Try Funter (http://nektony.com/funter). It s a free app that does the same, but in few clicks

over 1 year ago ·