macOS hides hundreds of files and folders from you on purpose. They hold settings, caches, and system data that most people never need — and that could cause real damage if deleted by accident. But sometimes you genuinely need them: a support guide tells you to open the Library folder, an app stores its data somewhere invisible, or you want to check what is eating your disk space. This guide shows the safe ways to reveal hidden files on a Mac, how to open the Library folder in seconds, and how to hide everything again when you finish.
Quick Answer
To show hidden files in Finder, open any folder and press Command + Shift + . (period). Hidden files appear as faded icons; press the same shortcut again to hide them. To reach your Library folder fast, click Go in Finder’s menu bar, hold the Option key, and choose Library. For a one-off visit you can also choose Go, then Go to Folder, and type ~/Library.
Why Are Files Hidden in the First Place?
macOS (and every Unix-based system) treats any file or folder whose name begins with a dot — such as .config or .DS_Store — as hidden. Apple also flags a few important folders, most notably the Library in your home folder, as invisible. The reasons are practical:
- Protection. Preference files and caches are easy to break and hard to understand; hiding them prevents accidental deletion.
- Cleaner folders. Your home folder would look overwhelming with every settings folder on display.
- Fewer mistakes. People rarely move or rename things they cannot see.
Knowing how to reveal them is still a basic Mac skill, because app data, licences, and troubleshooting steps often live in these places.
Method 1: The Keyboard Shortcut (Fastest)
This is the method most people use daily:
- Open Finder and go to any folder — your Home folder is a good test.
- Press Command + Shift + . (the period/full-stop key).
- Hidden files and folders appear immediately, shown slightly faded or greyed compared with normal items.
- Press the same shortcut again when you finish, and everything disappears back out of sight.
The shortcut toggles a Finder-wide setting, so once hidden files are visible in one folder they are visible in all folders until you toggle them off. It works on every modern version of macOS.
Method 2: Open the Library Folder Directly
The Library folder inside your home directory is the hidden folder people need most — it stores app preferences, fonts, caches, and support data. There are three quick routes in:
Use the Go menu
- In Finder, click Go in the menu bar.
- Hold the Option key. A Library entry appears in the menu.
- Click it while holding Option.
Use Go to Folder
- Press Command + Shift + G in Finder.
- Type ~/Library and press Return.
The ~ symbol means your home folder, so this path always lands in the right place.
Make Library permanently visible
- Open your Home folder in Finder.
- Choose View, then Show View Options (or press Command + J).
- Tick Show Library Folder. The Library now appears in your home folder like any normal folder.
Apple’s support article on locating the Library folder explains why there are actually three Library folders on a Mac (user, system-wide, and System) and which one each task needs.
Which Library Folder Do You Need?
Confusingly, macOS has three Library folders:
- ~/Library — inside your home folder. Your personal app settings, Mail data, and caches. This is the one guides almost always mean.
- /Library — at the top level of the drive. Settings shared by all users of the Mac, such as system-wide fonts and printer drivers.
- /System/Library — part of macOS itself. Leave it alone; changing anything here can stop the Mac starting.
If a guide just says “the Library folder,” assume ~/Library first. When storage space disappears, checking the big folders inside ~/Library (Caches, Containers, Application Support) with our guide on checking what is using space on your Mac tells you what is safe to clear.
Method 3: Show Hidden Files with Terminal
If the keyboard shortcut refuses to work, or you are helping someone remotely, Terminal gives the same result:
- Open Terminal from Applications, then Utilities.
- Type: defaults write com.apple.finder AppleShowAllFiles YES and press Return.
- Hold Option, right-click the Finder icon in the Dock, and choose Relaunch. Hidden files are now visible.
- To undo it later, run the same command with NO instead of YES, then relaunch Finder again.
This does exactly what the keyboard shortcut does — the shortcut is simply quicker.
Safety Rules Before You Touch Anything
Revealing hidden files is harmless; changing them carelessly is not. Follow these rules:
- Look, but do not delete what you cannot identify. If a folder’s purpose is unclear, search its name before removing it.
- Never empty the whole Caches folder blindly. Delete the contents of old, single-app cache folders instead; apps rebuild what they need.
- Back up first. Before serious tidying inside Library, run a Time Machine backup so any mistake is reversible.
- Hide files again afterwards. Leaving hidden files visible invites accidents later — yours or a family member’s.
- Stay out of /System. Nothing in the System Library needs manual editing on a healthy Mac.
Finding One Specific Hidden File with Spotlight and Finder Search
Once hidden files are visible, normal search tools can reach them too. In a Finder search window (Command + F), add a rule by clicking the + button, set the first dropdown to “File visibility,” and choose “Visible or Invisible items” — Finder then includes hidden files in its results, handy when a support note names a configuration file but not its folder. Spotlight, by contrast, deliberately skips most hidden system files even when they are visible in Finder, so do not conclude a file is missing just because Spotlight cannot find it; browse to its folder, or search with the Finder rule above.
Common Mistakes and Helpful Tips
- Pressing the wrong keys. The shortcut is Command + Shift + the period key on the main keyboard — not the numeric keypad dot on some keyboards.
- Opening the wrong Library. If the folder you need is not in the Library you opened, you probably opened /Library instead of ~/Library. Use Go to Folder with ~/Library to be certain.
- Thinking hidden files are viruses. Files like .DS_Store are normal macOS housekeeping files and appear in many folders.
- Dragging hidden items to the desktop. Moving system files out of place can break the app that owns them. Copy instead of moving if you need to inspect something.
- Forgetting the setting is on. If your folders suddenly look full of faded files days later, you left the toggle on — press Command + Shift + . to switch back.
Conclusion
Hidden files on a Mac are one shortcut away: Command + Shift + . reveals them, and the same shortcut hides them again. The Go menu with the Option key — or Go to Folder with ~/Library — takes you straight to the Library folder where most fixes happen. Work carefully in there, back up before deleting anything, and your Mac will stay healthy while you get the job done.
Frequently Asked Questions
Is it safe to show hidden files on my Mac?
Yes, viewing them is completely safe. Problems only arise if you delete or move system files you do not recognise, so explore freely but delete cautiously.
Why can I see a faded .DS_Store file in every folder?
macOS creates .DS_Store files to remember folder view settings such as icon positions. They are normal, tiny, and rebuilt automatically if deleted.
The keyboard shortcut does not work. What else can I try?
Click into a Finder window first so Finder is the active app, then try again. If it still fails, use the Terminal defaults command described above, which sets the same option directly.
How do I hide a file of my own on a Mac?
Files whose names begin with a dot are hidden automatically. Renaming a personal file to start with a dot via Terminal (for example mv file .file) hides it from casual view, though it is not real security — use FileVault or an encrypted disk image for sensitive data.
What is the difference between ~/Library and /Library?
~/Library belongs to your user account and holds your apps’ settings. /Library is shared by every account on the Mac and holds system-wide resources. Most troubleshooting uses ~/Library.


Leave a Reply