ThisCalculator

Everyday

Show Hidden Files Mac Finder: 3 Ways

Updated · Standard formula, shown below

Show Hidden Files Mac Finder: 3 Ways

To show hidden files in the Mac Finder, press Command + Shift + Period (⌘⇧.) while a Finder window is open — this instantly toggles hidden files on and off. If you need a more permanent solution or want to reveal a specific hidden folder, you can use the Terminal command defaults write com.apple.finder AppleShowAllFiles true followed by restarting Finder.

Why Mac Hides Files in the First Place

macOS hides certain files and folders to protect you from accidentally modifying or deleting system-critical data. These hidden items include the Library folder in your home directory, configuration files like .bash_profile or .zshrc, and application support files that store preferences and caches. The hidden attribute is simply a flag in the file system; a file or folder whose name begins with a dot (.) is automatically hidden in the Finder, and many system files also have the hidden flag set.

Apple’s design philosophy is to keep the user interface clean and prevent novices from breaking their system. However, advanced users often need to access these files to customize settings, back up application data, or troubleshoot issues.

Method 1: The Quick Keyboard Shortcut (Temporary)

The fastest and most reversible way to see hidden files is the keyboard shortcut Command + Shift + Period. This works in any Finder window and also in the Open/Save dialog boxes of most apps.

  1. Open a Finder window (click the Finder icon in the Dock).
  2. Press Command + Shift + Period simultaneously.
  3. Hidden files and folders will appear in a lighter, semi-transparent style.
  4. Press the same shortcut again to hide them.

This shortcut is temporary — it only affects the current state of Finder until you toggle it off or restart your Mac. It’s ideal for quick looks at a hidden file without permanently changing your system settings.

Method 2: Terminal Command (Permanent Toggle)

If you want hidden files to remain visible every time you open Finder, you can change a system setting via Terminal. This is a persistent change until you revert it.

  1. Open Terminal (found in Applications > Utilities).
  2. Type the following command and press Enter:
    defaults write com.apple.finder AppleShowAllFiles true
  3. Restart Finder by typing:
    killall Finder

To revert to hiding files, replace true with false in the same command and restart Finder again. This method is useful if you’re doing a long session of file management and don’t want to keep pressing the shortcut.

Method 3: Navigate to a Hidden Folder Directly

If you know the exact path of a hidden file or folder, you can jump to it without showing all hidden files. This is handy for quick access without cluttering your view.

  1. In Finder, press Command + Shift + G (Go to Folder).
  2. Type the full path, for example ~/Library or /System/Library, and press Enter.

You’ll be taken directly to that folder, even though it’s normally hidden. This works for any path, including dot-files like ~/.ssh.

How to Hide Files Again (and Why You Might Want To)

After you’ve finished your task, it’s generally a good idea to hide system files again. Leaving them visible increases the risk of accidentally moving, renaming, or deleting something important, which can cause apps to malfunction or your system to become unstable.

  • If you used the keyboard shortcut, just press Command + Shift + Period again.
  • If you used the Terminal command, run defaults write com.apple.finder AppleShowAllFiles false and then killall Finder.

Remember that hidden files are hidden for a reason — they’re not secret, they’re protected. Only modify them if you’re confident about what you’re doing.

Common Problems and Troubleshooting

Shortcut not working? Make sure you’re in Finder, not in another app. The shortcut also works in Open/Save dialogs, but not in every third-party app. If it still doesn’t work, check your keyboard settings for any conflicting shortcuts.

Terminal command not taking effect? After running the command, you must restart Finder for the change to apply. If killall Finder doesn’t work (it will quit and relaunch Finder), you can also log out and back in, or restart your Mac.

Hidden files still not visible? Some files are also protected by System Integrity Protection (SIP) on modern macOS versions. These files (like those in /System) may remain hidden even with the setting on. SIP is a security feature that prevents even root users from modifying certain system files; you should not disable it.

Alternatives: Using Finder’s Go Menu and Smart Folders

Beyond the methods above, you can also use the Go menu in Finder. Hold down the Option key while clicking the Go menu, and the Library folder will appear in the list. This is a quick way to access your user Library without showing all hidden files.

For ongoing projects, consider creating a Smart Folder that automatically collects files matching certain criteria (like name begins with a dot). This way you can see only the hidden files you care about without toggling the global setting.

Frequently Asked Questions

Does the keyboard shortcut work in every macOS version?

Yes, the Command + Shift + Period shortcut has been available since macOS Sierra (10.12) and continues to work in current versions like Sonoma and Sequoia. In older versions (pre-Sierra), you had to use the Terminal method.

Why can’t I see hidden files in the Open dialog of some apps?

Most Apple apps and many third-party apps respect the Finder’s hidden file setting. However, some apps have their own file picker that may not support the shortcut. In that case, you can press Command + Shift + G to type the full path directly.

Will showing hidden files slow down my Mac or cause damage?

Simply showing hidden files does not harm your Mac or affect performance. The risk is that you might accidentally modify or delete a file that the system needs. As long as you’re careful, it’s safe to have them visible temporarily.

How do I hide a file or folder myself?

You can hide any file or folder by adding a dot at the beginning of its name (for example, notes.txt becomes .notes.txt). You can also use the Terminal command chflags hidden /path/to/file to set the hidden flag without renaming. To unhide, use chflags nohidden.

What is the difference between hidden files and system files?

Hidden files are simply those with the hidden flag or a dot-prefix; they can be user files. System files are part of macOS and are usually hidden to prevent modification. All system files are hidden, but not all hidden files are system files.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.