macOS hides certain folders by default to prevent accidental changes to system files

Hidden folders on a Mac are real directories that contain important system files, configuration settings, and application data. They're hidden not because they're secret, but because most people don't need to access them and could cause problems by moving or deleting them by mistake. The most common hidden folder is the Library folder in your home directory, which stores preferences, caches, and support files for your applications.

You can reveal hidden folders using the Finder (the app that opens when you click the Finder icon in your dock), and the process takes about 30 seconds. Once you know how, you can toggle hidden files on and off whenever you need to.

Key Takeaways

  • Hidden folders exist in Finder but don't appear by default; you can make them visible using a keyboard shortcut or a menu option.
  • The Library folder in your home directory is the most commonly hidden folder and contains application settings and cached data.
  • Folders that start with a period (.) are hidden by default in macOS; this is a standard Unix convention.
  • You can reveal hidden files temporarily to find what you need, then hide them again to keep your Finder window clean.

Use the keyboard shortcut to show hidden files in Finder

The fastest way to reveal hidden folders is to use a keyboard shortcut while you have a Finder window open. Press Command + Shift + Period (the period key, also called the full stop). Hidden files and folders will immediately appear in your Finder window, usually shown in a lighter gray color to distinguish them from regular files.

Press the same shortcut again to hide them. This works in any Finder window, so you can toggle visibility on and off as you navigate. If you're looking for a specific hidden folder like Library, you can use this shortcut, find what you need, then press it again to return to the normal view.

Access the Library folder from the Go menu

If you only need to reach your Library folder (the most commonly accessed hidden directory), you don't have to reveal all hidden files. Open Finder and click the Go menu at the top of your screen. You'll see an option for Library listed there. Click it and Finder will take you directly to your home Library folder.

This method is useful if you're troubleshooting a specific application and need to access its preferences or cached files. The Library folder contains subfolders like Application Support, Preferences, and Caches, each of which stores different types of application data. You can navigate through these subfolders normally once you're inside Library.

Understand what hidden folders contain

The Library folder holds application preferences (settings you've configured in apps), cached data (temporary files apps create to run faster), and support files that applications need to function. For example, if you customize the toolbar in an application, that preference is stored in Library/Preferences. If an app is misbehaving, clearing its cache folder (found in Library/Caches) sometimes fixes the problem.

Other commonly hidden folders include .ssh (which stores secure shell keys if you use terminal commands), .git (used by developers for version control), and .config (configuration files for various applications). You generally don't need to access these unless you're doing technical work or troubleshooting a specific issue. System folders like /System and /Library (at the root level of your drive, not in your home folder) are also hidden and should not be modified.

Use Terminal if you need to work with hidden files regularly

If you frequently need to access hidden folders, you can use Terminal (the command-line application) to navigate and manage them. Open Terminal from Applications > Utilities, then use the ls -la command to list all files including hidden ones in your current directory. The -a flag shows all files, including those starting with a period.

Terminal gives you more control and is useful if you're copying, moving, or editing hidden files as part of a regular workflow. However, for most everyday tasks like finding a hidden folder to troubleshoot an application, the Finder method is simpler and safer. Terminal requires you to type commands correctly, and a mistake can affect your system, so use it only if you're comfortable with command-line work.

Restore default visibility if hidden files are cluttering your view

If you've revealed hidden files and your Finder windows now look cluttered with folders and files you don't recognize, simply press Command + Shift + Period again to hide them. This returns your Finder to its normal state without affecting the hidden files themselves — they're still there, just not displayed.

You can also change this setting permanently in Finder preferences if you prefer. Open Finder, click Finder in the menu bar, then Settings (or Preferences on older macOS versions). Go to the Advanced tab and check or uncheck the box for "Show all filename extensions" and look for options related to hidden files, depending on your macOS version. However, the keyboard shortcut is usually faster for occasional access.

Frequently Asked Questions

Why does macOS hide these folders in the first place?

Hidden folders contain system and application files that most users don't need to touch. Hiding them prevents accidental deletion or modification that could break applications or your system. It keeps your Finder window focused on the files and folders you actually work with.

Is it safe to look inside hidden folders?

Looking is safe. Opening and reading files is safe. Deleting or moving files inside hidden folders can cause problems, especially in system directories like /System or /Library. If you're just browsing to find a file or understand what's stored there, you won't cause any damage.

What's the difference between a hidden folder and a system folder?

Hidden folders are simply not displayed by default, but you can reveal them with a keyboard shortcut. System folders are protected by macOS permissions, meaning you can't modify them even if you can see them. Both are hidden by default, but system folders have an extra layer of protection.

Can I unhide a folder permanently so it always shows in Finder?

You can rename a hidden folder to remove the period at the beginning (if it starts with one), which makes it unhide. However, this is rarely necessary and can make your Finder window cluttered. The keyboard shortcut method is simpler for occasional access.

What should I do if I accidentally deleted something from a hidden folder?

Check your Trash first — deleted files go there before permanent removal. If the file is still there, drag it back to its original location. If you've already emptied Trash, recovery is difficult. This is why it's important to be cautious when working in hidden folders, especially system directories.