showFiles
and hideFiles
whenever I need to show/hide OS X's hidden files. Here's how you can do it too.defaults write com.apple.finder AppleShowAllFiles YES
sudo nano ~/.bash_profile
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
source ~/.bash_profile
to refresh your profile and make the aliases availableshowFiles
, then hideFiles
when you want to hide them.alias
tells Terminal we're adding a new alias.showFiles
is the name of the alias. Change this to what you wish.;
so we can then use the second command:showFiles
and hideFiles
to show and hide Mac OS X's hidden files respectively.