Last Updated: September 09, 2019
· 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 AppleShowAllFiles FALSE;killall Finder"
alias shf="defaults write 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


2 Responses
Add your response

a good job~thanks

over 1 year ago ·

Try Funter ( It s a free app that does the same, but in few clicks

over 1 year ago ·