The invisible layer: hidden files on your Mac and what they do

Updated September 2026 · 6 min read

Your Mac has thousands of files you've never seen. They don't appear in Finder. They don't show up when you browse your home folder. But they're there — configuration files, caches, system databases, developer dotfiles — and some of them are surprisingly large.

Here's how to see them, what they are, and which ones you should absolutely leave alone.

How to show hidden files in Finder

The keyboard shortcut:

Cmd + Shift + . (period)

Press it in any Finder window and hidden files appear, slightly grayed out. Press it again to hide them. This is a toggle — it stays active across folders until you press it again.

That's it. No Terminal required for just looking.

Why files are hidden

macOS hides files for two reasons:

Hidden files you'll see (and what they are)

When you reveal hidden files in your home folder, you'll see a collection of dot-files and dot-folders. Here are the common ones:

File/FolderWhat it isSafe to delete?
.zshrcYour shell configuration (PATH, aliases, etc.)No — it configures your Terminal
.sshSSH keys for connecting to servers and GitHubNo — deleting this locks you out of servers
.gitconfigYour Git settings (name, email, aliases)No — your Git setup breaks
.npmnpm's cache and configurationCache inside: yes. Config files: no.
.dockerDocker configurationNo — Docker settings live here
.TrashThe Trash folder for your diskEmpty it through Finder, not manually
.DS_StoreFinder's folder view preferences (per folder)Yes — Finder recreates them
.localizedEmpty file that tells macOS to translate folder namesYes, but no space saved

The Library folder — hidden but important

Your ~/Library folder isn't technically a dot-file, but macOS hides it from Finder by default. It's where apps store their data, preferences, caches, and support files. To access it:

The biggest folders inside Library are usually Caches (app caches, often 5–20 GB), Application Support (app data), and Developer (Xcode data, if you develop). These are the same folders that contribute to the "System Data" mystery in storage settings.

What you should never touch

Do not delete, rename, or move:

Hidden files that waste space

Some hidden files are worth cleaning up:

See what's really using your disk

Gigatidy looks at everything on your Mac — visible and hidden — and explains what every gigabyte is. No guessing, no risk of deleting the wrong thing.

Meet Gigatidy →

FAQ

Will showing hidden files slow down my Mac?

No. Toggling hidden file visibility with Cmd+Shift+. is purely a display setting in Finder. It doesn't change anything about the files themselves or how macOS runs.

Why does macOS hide the Library folder?

To prevent accidental damage. The Library folder contains app preferences, caches, and data that apps depend on. Deleting or moving the wrong file can break apps or lose data. Apple hides it by default because most users never need to access it directly.

Can I permanently show hidden files in Finder?

The Cmd+Shift+. shortcut toggles visibility and stays on until you press it again — even across Finder restarts. There's no separate "permanent" setting needed. If you want hidden files always visible, just press the shortcut once and leave it.