Why Mac hides files and how to see them

Mac hides certain files by default to keep your system folder clean and prevent you from accidentally deleting something your computer needs to run. These hidden files usually start with a dot (.) and include system configuration files, cache folders, and backup data. You cannot see them in Finder the normal way, but they are still there taking up space and sometimes holding information you need.

The most common reason to look for hidden files is to find a configuration file you edited, locate a backup folder, or check how much space hidden cache is using. You have three ways to reveal them: a keyboard shortcut in Finder, a Terminal command, or a third-party app. The keyboard shortcut is fastest for a one-time look.

Key Takeaways

  • Press Command + Shift + Period (.) in any Finder window to toggle hidden files on and off when ready.
  • Hidden files start with a dot and include system files, cache folders, and configuration files your Mac needs to function.
  • Once you turn hidden files on, they stay visible until you press the same shortcut again — the setting does not reset when you close Finder.
  • If the keyboard shortcut does not work, use Terminal with the command defaults write com.apple.finder AppleShowAllFiles true followed by killall Finder.

Show hidden files with the keyboard shortcut

Open Finder and navigate to any folder. Press Command + Shift + Period (the period key, not a different punctuation mark). Hidden files will appear when ready alongside your normal files and folders. They usually look slightly faded or greyed out compared to regular files, making them straightforward to spot.

Press the same shortcut again to hide them. This toggle works in any Finder window — you do not need to be in a specific location. The setting persists across Finder windows until you toggle it off, so if you open a new window, hidden files will still be visible.

Use Terminal if the keyboard shortcut does not work

If the keyboard shortcut does not respond, open Terminal (search for it in Spotlight by pressing Command + Space, typing "Terminal", and pressing Enter). Type this command exactly: defaults write com.apple.finder AppleShowAllFiles true and press Enter.

Then type killall Finder and press Enter. This restarts Finder and applies the change. Hidden files will now be visible in all Finder windows. To hide them again later, use the same first command but replace true with false, then run killall Finder again.

Find specific hidden files by name

If you know the name of the hidden file you are looking for, you do not need to make all hidden files visible. Open Finder and press Command + F to open the search box. Type the filename (including the dot if you know it starts with one) and Finder will locate it even if hidden files are not currently visible.

This search works across your entire Mac or just within a folder you select. Once Finder shows the result, you can see the full path to the file by looking at the location bar at the bottom of the search result window.

Check hidden cache and temporary files

The most common hidden folders are ~/Library (your user library), ~/.cache (temporary files apps create), and ~/.config (configuration settings). These folders can grow large over time. To navigate directly to them without scrolling through all hidden files, open Finder and press Command + Shift + G to open the "Go to Folder" dialog.

Type the folder path (for example, ~/.cache) and press Enter. Finder will take you straight there. From here you can see how much space these folders use by right-clicking and selecting "Get Info". Be cautious about deleting files in these folders unless you are certain what they are — some apps rely on cache to function properly.

Use a file manager app for easier browsing

If you find yourself looking for hidden files regularly, a third-party file manager like Commander One or Finder Pro can show hidden files by default without toggling. These apps display hidden files alongside regular files in a two-pane layout, which some people find easier to navigate than Finder.

Most of these apps are paid (usually between $5 and $15), but they also offer features like dual-pane browsing, batch renaming, and better search filters. If you only need to see hidden files occasionally, the keyboard shortcut is faster and costs nothing.

What to do if you accidentally delete a hidden file

If you delete a hidden file and your Mac stops working properly, restart your computer and turn off hidden file visibility when ready. Most system files have backups, and restarting often restores normal function. If a problem persists, check the Trash folder — hidden files go there just like regular files, and you can restore them by right-clicking and selecting "Put Back".

If the Trash has been emptied, you can recover deleted files with recovery software like Disk Drill or EaseUS Data Recovery, though recovery is not may provide. The safest approach is to avoid deleting hidden files unless you are certain what they do. When in doubt, search online for the filename before removing it.

Frequently Asked Questions

Why does my Mac hide these files in the first place?

System files and configuration folders can break your Mac if deleted by accident. Hiding them reduces the chance you will remove something critical. The files are not secret — they are just tucked away from casual browsing.

Will showing hidden files slow down my Mac?

No. Making hidden files visible does not change how your Mac runs. It only changes what Finder displays. The files were already there using the same space and resources.

Can I permanently hide files I create myself?

Yes. In Terminal, type chflags hidden /path/to/file (replace the path with your actual file location). To unhide it, use chflags nohidden /path/to/file. This works for any file, not just system files.

What is the Library folder and why is it hidden?

The Library folder stores process data, preferences, caches, and support files for every app you use. It is hidden because moving or deleting files there can break apps. You may need to access it to clear app cache or find saved preferences.

Is it safe to delete files in the .cache folder?

Usually yes. Cache files are temporary and apps will recreate them if needed. Deleting cache can free up space, but some apps may run slightly slower the first time you use them after clearing cache as they rebuild it.