How to view hidden files in macOS
Using shortcut in Finder
The following steps and shortcut only works on macOS Sierra and later versions.
You should now be able to see hidden files in Finder after pressing the keyboard shortcut above. To stop viewing hidden files, press the keyboard shortcut again.
Modify Finder to always show hidden files
The following steps for viewing hidden files should work on all versions of macOS.
- Open the Finder application.
- In the left navigation pane, click Applications, then Utilities. Open the Terminal utility.
- In the Terminal, paste the following text.
defaults write com.apple.finder AppleShowAllFiles YES
- Press the Return key.
- Press and hold the Option/alt key, then right-click the Finder application icon and select Relaunch.
You should now be able to see hidden files in Finder. To stop viewing hidden files, follow the steps above again, but in step 3, paste the following text in the Terminal.
defaults write com.apple.finder AppleShowAllFiles NO