How to Show Hidden Files in macOS Finder: 3 Methods
Accessing hidden files (those starting with a period .) in macOS Finder is essential for advanced troubleshooting and configuration. macOS hides them by default to protect system integrity. Here are the primary methods to reveal them.
🔍 Why Files Are Hidden & A Word of Caution
-
Purpose: Hiding system and application configuration files (e.g.,
.bash_profile,.gitignore) prevents accidental deletion or modification that could break your OS or apps. -
⚠️ Warning: Do not modify or delete hidden files unless you know their exact purpose. Improper changes can cause software crashes or system instability.
🛠️ Three Methods to Show Hidden Files
Choose the method that best fits your workflow, from a quick toggle to a permanent setting.
| Method | Best For | Key Action |
|---|---|---|
| 1. Keyboard Shortcut | Quick, temporary viewing. Toggling visibility on-demand. | Press Cmd + Shift + . (period) in any Finder window. |
| 2. Terminal Command | Making the change permanent until you reverse it. | Run a specific defaults write command and restart Finder. |
| 3. Finder Preferences (macOS Ventura+) | A graphical interface alternative to Terminal (limited to specific folders). | Use the View Options menu in an open folder. |
📝 Detailed Steps for Each Method
Method 1: Keyboard Shortcut (Fastest & Recommended)
This toggles visibility instantly in the currently open Finder window.
-
Open a Finder window to the folder you want to explore.
-
Press the key combination:
Command (⌘) + Shift (⇧) + Period (.). -
Hidden files and folders (with semi-transparent icons) will appear.
-
Press the same shortcut again to hide them.
Method 2: Terminal Command (Permanent Change)
This changes a system setting and requires restarting Finder.
-
Open Terminal (Applications > Utilities).
-
To show hidden files, type the following command and press Return:
defaults write com.apple.finder AppleShowAllFiles true
-
To apply the change, force-restart Finder. Type this command and press Return:
killall Finder -
All Finder windows will relaunch, now displaying hidden files.
-
To hide them again later, repeat the process but use
falsein the command:defaults write com.apple.finder AppleShowAllFiles false
Method 3: Using Finder’s View Options (macOS Ventura & Later)
This controls visibility for a single folder, not globally.
-
Open the folder you want to inspect in Finder.
-
Click the View menu in the menu bar and select “Show View Options” (or press
Cmd + J). -
In the settings panel, check the box for “Show Hidden Files”.
🔧 Troubleshooting: If Finder Doesn’t Show Files
If the above methods fail, try these steps:
-
Restart Finder: Go to the Apple menu > Force Quit, select Finder, and click “Relaunch.”
-
Reset Finder Preferences: Quit Finder, then in Terminal, run:
defaults delete com.apple.finder
Warning: This resets all Finder preferences to defaults (sidebar, toolbar layout, etc.).
-
Check for
.hiddenFiles: Some folders contain a.hiddenfile that lists items to hide. You would need to view hidden files first (using Method 1 or 2) to see and edit it.
✅ Summary: Quick Start Guide
To quickly view hidden files:
-
Use the keyboard shortcut
Cmd + Shift + .in a Finder window. -
For a permanent setting, use the Terminal command
defaults write com.apple.finder AppleShowAllFiles truefollowed bykillall Finder. -
Exercise caution and avoid modifying files unless you are certain of their function.
Mastering these methods gives you full visibility into your Mac’s file system for powerful management and troubleshooting.


