
If you want to modify the behaviour or alias names, let's take a closer look at the commands you just added: alias showFiles='defaults write AppleShowAllFiles YES Now when you want to show hidden files, all you need type in Terminal is showFiles, then hideFiles when you want to hide them. In Terminal, paste the following: source ~/.bash_profile to refresh your profile and make the aliases availableĪdding aliases to.Press ctrl + X to exit the file and return to the command line.Press ctrl + O and hit return to save the file.bash_profile file, paste the following: alias showFiles='defaults write AppleShowAllFiles YES killall Finder /System/Library/CoreServices/Finder.app'īelow that, paste the following: alias hideFiles='defaults write AppleShowAllFiles NO killall Finder /System/Library/CoreServices/Finder.app'
View hidden files mac folder password#
View hidden files mac folder mac os x#
The long way to show hidden Mac OS X files is as follows: Thanks to Guido Schlabitz for making me aware of this new shortcut. If you're using a version earlier than macOS Sierra, see Show/Hide Hidden Files using Terminal Aliases to setup a toggle command via terminal.

Press once to show hidden files and again to hide them. Since the release of macOS Sierra, when in Finder, it is now possible to use the shortcut: CMD + SHIFT +. The Quickest Way to Show/Hide Hidden Files All I need do now is type showFiles and hideFiles whenever I need to show/hide OS X's hidden files. Today I decided to make a short and easy to remember alias to speed up the process.

It seems like every day I search Google for the command to show hidden files on Mac OS X, not to mention Googling for the command to then hide those hidden files a few minutes later.
