How to Show Hidden Files on a Mac (3 Ways)
See every file on your Mac β including the ones Apple hides by default β in seconds
β‘ TL;DR
- Keyboard shortcut: In Finder, press Command + Shift + . (period) to toggle hidden files on/off instantly
- Terminal:
defaults write com.apple.finder AppleShowAllFiles truethen relaunch Finder - Go to Folder: Press Command + Shift + G and type a hidden path directly
- Hidden files have names starting with a dot (e.g.
.DS_Store,.bash_profile) - Turn them back off when done β hidden files are hidden for a reason
macOS hides a large number of system files, configuration files, and caches from view in Finder. Most of the time, this is a good thing β you don’t want to accidentally delete something your system depends on. But there are plenty of legitimate reasons to reveal them: cleaning up app leftovers, editing configuration files, troubleshooting, or developer work.
Here are the three fastest ways to show hidden files on any Mac.
“Command + Shift + . is one of the most useful Mac keyboard shortcuts nobody knows about.”
Method 1: Keyboard Shortcut in Finder (Fastest)
This is by far the quickest way β a single keyboard shortcut that works anywhere in Finder:
- Open Finder (click the smiley face icon in your Dock)
- Navigate to any folder β your home folder, Desktop, or wherever you want to look
- Press Command + Shift + . (period)
Hidden files and folders instantly appear, shown with a slightly transparent/greyed-out icon so you can tell them apart from regular files. Press the same shortcut again to hide them.
π‘ This Is a Toggle
Command + Shift + . works as a toggle β press it once to show hidden files, press it again to hide them. The setting persists until you toggle it again, even after restarting Finder. Once you’ve finished what you needed, press it again to clean up the view.
Method 2: Use Terminal to Permanently Show Hidden Files
If you want hidden files always visible (useful for developers), use Terminal to change the Finder preference permanently:
Show All Hidden Files
defaults write com.apple.finder AppleShowAllFiles true
killall Finder
The second command restarts Finder to apply the change immediately. Hidden files now appear across all Finder windows.
Hide Them Again
defaults write com.apple.finder AppleShowAllFiles false
killall Finder
Method 3: Go to a Specific Hidden Folder Directly
Often you don’t need to see all hidden files β you just need to navigate to one specific hidden folder like the Library. The Go to Folder shortcut lets you jump straight there:
- In Finder, press Command + Shift + G (or go to Go menu β Go to Folder)
- Type the path of the hidden folder you want to open
- Press Enter or click Go
Useful paths to know:
~/.Trashβ your user Trash folder~/Libraryβ your user Library (app support, caches, preferences)~/Library/Application Support/β app data files~/Library/Preferences/β app preference files (.plist)~/Library/Caches/β temporary cached data (safe to clear)/Libraryβ system-wide Library folder/private/var/folders/β system temp files
π‘ Access ~/Library via the Go Menu
There’s an even easier way to open your Library folder: click Go in the Finder menu bar, then hold down the Option key. Library will appear in the dropdown. Click it.
What Are Hidden Files on a Mac?
Hidden files are files whose names start with a dot (.). macOS Finder hides any file or folder beginning with a period by default. Common hidden files you’ll encounter:
| File/Folder | What It Does | Safe to Delete? |
|---|---|---|
.DS_Store |
Stores custom folder view settings | Yes β recreated automatically |
.bash_profile / .zshrc |
Terminal shell configuration | Only if you know what’s in it |
.Trash |
Your user Trash before it’s emptied | Yes β emptying Trash clears it |
.Spotlight-V100 |
Spotlight search index for a volume | No β Spotlight needs it |
.git |
Git repository data | No β deletes your repo history |
~/Library |
App support, caches, preferences | Selectively β know what you’re deleting |
Why You Might Need to See Hidden Files
- Removing leftover app files β after uninstalling an app, its support files in ~/Library stay hidden
- Editing shell config β modifying
.zshrcor.bash_profilefor Terminal customizations - Developer work β accessing
.gitfolders,.envfiles, config files - Troubleshooting β checking log files and caches for error diagnosis
- Clearing caches β manually deleting cached data in ~/Library/Caches to free up disk space
β οΈ Don’t Delete Hidden Files You Don’t Recognise
Hidden files are hidden for a reason β many are critical for system operation. If you see a hidden file you don’t recognise, search for it before deleting. Deleting the wrong system file can cause apps to crash or require an OS reinstall.
π More Mac Tips
- How to Uninstall Apps from Mac Completely β find and remove leftover hidden files
- How to Rename Multiple Files at Once on Mac
- Create a One-Click AirDrop Shortcut on Mac
Frequently Asked Questions
What is the keyboard shortcut to show hidden files on Mac?
Command + Shift + . (period) β press it in any Finder window to toggle hidden files on or off. It’s the fastest method and works on all modern macOS versions.
Why can’t I see the Library folder on my Mac?
The Library folder is hidden by default. The fastest way to access it: in Finder, click the Go menu in the menu bar, then hold down the Option key β Library appears in the dropdown. Alternatively, use Command + Shift + G and type ~/Library.
Will showing hidden files slow down my Mac?
No β showing or hiding hidden files has no impact on Mac performance. It’s purely a display setting in Finder. The files are always there, whether visible or not.
How do I hide files again after I’m done?
Press Command + Shift + . (period) again in Finder. If you used the Terminal method, run: defaults write com.apple.finder AppleShowAllFiles false followed by killall Finder.
Can I make a specific file hidden on my Mac?
Yes β in Terminal, use: chflags hidden /path/to/file. To unhide it: chflags nohidden /path/to/file. Alternatively, rename the file with a dot at the beginning (e.g., .myfile.txt) β Finder will hide it automatically.
Get More Mac Tips
Practical guides for real Mac users β published weekly on Techtippr.