Knowing how to Show Hidden Files Mac is a skill that comes up more often than most users expect. Whether you are troubleshooting an application, recovering a missing file, or exploring your system’s folder structure, macOS hides a significant portion of its files by default to protect system integrity.
Show Hidden Files Mac refers to making files and folders that start with a dot (.) visible in Finder or the Terminal. macOS hides these by default because they include system configurations, preference files, and application data that most users should not modify without understanding what they contain.
The important thing to remember is that hidden files are hidden for a reason. Viewing them is safe. Modifying or deleting them without understanding their purpose can cause application errors, system instability, or loss of settings.
Why macOS Hides Files in the First Place
The Purpose of Hidden Files on Mac
macOS uses the same Unix-based convention as Linux for hiding files: any file or folder whose name begins with a period is hidden by default. These files fall into several categories:
- System configuration files: Core macOS preferences that applications and the OS read on startup
- Application support files: Hidden folders where apps store settings, caches, and data
- Unix system directories: Directories like /usr, /bin, and /etc that are part of the underlying Unix system
- Temporary and cache files: Files used by running processes that are not intended for user interaction
- Git and development files: Files like .gitignore and .env that developers use but average users never need to see
Understanding that most hidden files serve a functional purpose helps you approach them with the right level of caution.
What Happens if You Delete a Hidden File
Deleting the wrong hidden file can have cascading effects:
- Removing application preference files forces the app to reset to defaults, losing your settings
- Deleting system-level configuration files can prevent applications or services from starting correctly
- Removing files from /System or /Library directories can require a macOS reinstall to repair
Always proceed carefully. Viewing hidden files carries no risk. Modifying or deleting them without a specific reason does.
How To Show Hidden Files Mac Using a Keyboard Shortcut
The Fastest Method: Finder Keyboard Shortcut
The quickest way to Show Hidden Files Mac is a keyboard shortcut in Finder. This method is non-permanent and toggles visibility on and off:
- Open Finder on your Mac
- Navigate to the folder where you want to see hidden files (your home folder, Desktop, etc.)
- Press Command + Shift + . (period) simultaneously
- Hidden files and folders will appear, typically shown in a lighter, grayed-out style to distinguish them from regular files
- Press Command + Shift + . again to hide them
This shortcut works on macOS Sierra and all later versions. It is the recommended method for occasional viewing because it does not permanently change system settings.
How To Show Hidden Files Mac Using Terminal
Making Hidden Files Permanently Visible
If you want hidden files to remain visible across all Finder windows and sessions, use the Terminal method. This is the preferred approach for developers and power users:
- Open Terminal via Finder > Applications > Utilities > Terminal
- Type the following command and press Enter:
defaults write com.apple.finder AppleShowAllFiles TRUE
- Then restart Finder by running:
killall Finder
Finder will briefly close and reopen with hidden files now visible in all locations.
Reverting the Terminal Setting
To hide hidden files again after using the Terminal method:
- Open Terminal
- Run the following command:
defaults write com.apple.finder AppleShowAllFiles FALSE
- Restart Finder again with: killall Finder
Note that the command uses TRUE or FALSE in some macOS versions and true or false in others. Both variants work on modern macOS.
How To Access Specific Hidden Folders Without Showing All Files
Using “Go to Folder” in Finder
If you need to access one specific hidden directory without revealing all hidden files globally, use the “Go to Folder” function:
- Open Finder
- From the menu bar, click Go > Go to Folder (or press Command + Shift + G)
- Type the path of the hidden folder you want to access (for example: ~/.config or /Library/Application Support)
- Press Enter or click Go
Finder will open the specified hidden directory directly, without revealing hidden items elsewhere. This is the cleanest approach when you know exactly which folder you need.
Commonly Accessed Hidden Folders on Mac
Users most frequently need to access these hidden locations:
| Hidden Location | Path | Common Use |
|---|---|---|
| User Library folder | ~/Library | Application preferences and support files |
| Application Support | ~/Library/Application Support | App-specific data and settings |
| macOS system binaries | /usr/bin | Terminal commands and system utilities |
| Git configuration | ~/.gitconfig | Version control settings |
| SSH keys | ~/.ssh | Secure shell authentication keys |
| Environment variables | ~/.zshrc or ~/.bash_profile | Terminal configuration |
Security Considerations When Accessing Hidden Files
Can Malware Hide in Mac Hidden Files?
Yes. macOS malware frequently uses hidden directories to store its components, configuration files, and persistence mechanisms. Common locations used by malicious software include:
- Hidden folders inside the user Library directory
- Launch agents stored in ~/Library/LaunchAgents (which run programs on login)
- Items hidden in /tmp and /var/tmp directories
If you know how to View Hidden Files Mac and notice unfamiliar files in these locations, that warrants investigation. Running an antivirus scan can confirm whether a suspicious hidden file is malicious.
What to Look for in Launch Agents
The ~/Library/LaunchAgents folder is one of the most important hidden locations to inspect if you suspect malware. This folder contains property list (.plist) files that tell macOS to run specific programs when you log in.
Legitimate software places items here (Dropbox, antivirus tools, cloud sync apps), but malware uses the same mechanism to persist through restarts. If you see a .plist file in LaunchAgents with an unusual or randomized name, and you do not recognize the corresponding application, it should be investigated.
Pro Tips: Working With Hidden Files on Mac Like an Expert
- Use “Get Info” before deleting hidden files: Before removing any hidden file, press Command + I to open its info panel. The file path, ownership, and modification date can help you identify whether it is system-critical.
- Make a backup before editing hidden configuration files: If you need to modify a configuration file (like .zshrc or a settings plist), copy it first with a different name as a backup. This makes reverting easy if something breaks.
- Use Finder’s column view when browsing hidden folders: Column view (Command + 3) shows the hierarchy of folders clearly, making it easier to navigate deep into hidden directory structures without getting lost.
- Use Terminal’s ls -la command to view hidden files with details: In Terminal, typing ls -la in any directory shows all files including hidden ones, along with permissions, ownership, and modification dates.
Common Mistakes When Accessing Hidden Files on Mac
- Deleting hidden files out of curiosity: Hidden files look cluttered and some are large. Users sometimes delete them to free space without understanding their function. Fix: Only delete hidden files when you have specifically identified them and confirmed they are safe to remove.
- Leaving hidden files permanently visible without reason: Having hidden files constantly visible adds visual clutter in Finder and increases the chance of accidentally modifying a system file. Fix: Use the keyboard shortcut for temporary access and revert to hidden when done.
- Ignoring suspicious Launch Agents: Many users never check ~/Library/LaunchAgents, leaving persistent malware undetected. Fix: Review this folder periodically and research any unfamiliar entries before dismissing them.
How Norton 360 For Gamers Protects Your Mac From Hidden Threats
Hidden files are not just for system use. As noted above, malware on Mac uses hidden directories to persist and operate invisibly. The challenge is that many users would never think to check these locations, and even those who do may not recognize a malicious file when they see one.
Norton 360 For Gamers provides real-time protection that monitors these hidden system locations continuously. When a suspicious file appears in a common malware persistence location, such as LaunchAgents, Norton flags it immediately before it can execute.
Norton’s Mac-specific malware scanner is built to detect the types of threats that target macOS users, including adware disguised as legitimate apps, fake browser extensions, and persistent background processes that drain battery and performance.
ExitLag complements your Mac’s performance by optimizing game server connections. Many Mac gamers notice higher latency than Windows users on the same game. ExitLag’s multipath routing technology analyzes multiple connection paths and selects the optimal route in real time, reducing lag and improving connection stability across 4,000+ supported titles.
Together, ExitLag gives Mac users comprehensive protection against hidden threats while keeping their gaming sessions fast and stable.
All images used in this blog post belong to their respective owners and are used for informational and educational purposes only. They do not imply endorsement or affiliation with the rights holders.
Got questions or want to connect with other players? Join the conversation at the ExitLag Forum!