In the digital age, Mac users often need to access hidden files for various reasons, such as troubleshooting, customizing system settings, or recovering lost data. By default, macOS hides these files to prevent accidental deletion or modification. However, Mac provides built-in ways to reveal these hidden files. Let's explore how to show hidden files on a Mac.
Understanding Hidden Files on Mac
Hidden files on Mac are system files that are not visible by default. They are marked with a dot (.) at the beginning of their names. These files contain crucial system data and should not be tampered with unless you know what you're doing. Always be cautious when dealing with hidden files.
Showing Hidden Files in Finder
The Finder is the primary file management tool on Mac. Here's how to show hidden files using Finder:

- Open Finder and navigate to the folder where you want to view hidden files.
- Click on the "Finder" menu at the top of your screen, then select "Preferences".
- In the Preferences window, click on the "Advanced" tab.
- Check the box next to "Show all filename extensions".
- Close the Preferences window.
This will not only show hidden files but also display the file extensions. To hide files again, simply uncheck the box in the Advanced preferences.
Using Terminal to Show Hidden Files
Mac's Terminal app provides a more direct way to show and hide hidden files. Here's how:
- Open Terminal (you can find it in Applications > Utilities).
- Type the following command and press Enter:
defaults write com.apple.finder AppleShowAllFiles TRUE

- To hide files again, use the following command:
defaults write com.apple.finder AppleShowAllFiles FALSE
- After running these commands, you'll need to restart Finder for the changes to take effect. You can do this by typing
killall Finderin the Terminal and pressing Enter.
Showing Hidden Files in Specific Folders
Sometimes, you might want to show hidden files in specific folders only. You can do this by using the chflags command in Terminal. Here's how:
- Open Terminal and navigate to the folder where you want to show hidden files.
- Type the following command and press Enter:
chflags nohidden *
- To hide files again, use the following command:
chflags hidden *
Conclusion
Showing hidden files on a Mac can be useful in various situations. Whether you're troubleshooting, customizing, or recovering data, knowing how to reveal these files can be a powerful tool. Always remember to handle hidden files with care, as they contain crucial system data.