Permanently show hidden files in Finder
If a file or folder name starts with a .
(dot), it is considered hidden. Because they start with a dot, they are also known as dotfiles
.
On MacOS, hidden files are not shown in Finder by default.
There is no menu option to show hidden files in Finder. Why? Because Apple thinks you can't handle messing with hidden files, and Apple knows better than you. Even if you're a developer. 🤷♂ ️
There is a keyboard shortcut to do this temporarily: Cmd + Shift + .. This toggles hidden files on and off. This is kind of annoying if you're a developer and you want hidden files shown by default in Finder.
To permanently show hidden files in Finder, you can run the following command in the terminal:
defaults write com.apple.finder AppleShowAllFiles TRUE
# If you also want to restart all open Finder windows too:
defaults write com.apple.finder AppleShowAllFiles TRUE ; killall Finder
To hide hidden files again, run the following command:
defaults write com.apple.finder AppleShowAllFiles FALSE
# If you also want to restart all open Finder windows too:
defaults write com.apple.finder AppleShowAllFiles FALSE ; killall Finder
This will show hidden files in Finder. You can toggle this setting by changing TRUE
to FALSE
and vice versa.