How to Find Hidden Files on a Mac

macOS keeps certain files tucked out of sight by default — not to be secretive, but to protect system-critical data from accidental changes. If you've ever gone looking for a configuration file, a library folder, or a dotfile and come up empty, you've already run into this behavior. The good news: hidden files are still there, and there are several reliable ways to surface them depending on what you're trying to do.

Why macOS Hides Files in the First Place

Apple's approach to file visibility is intentional. Files and folders are hidden for two main reasons:

  • System protection — Files that macOS needs to function (kernel extensions, system libraries, cache directories) are hidden to reduce the risk of accidental deletion or modification.
  • Reduced clutter — Configuration files, dotfiles (files whose names begin with a .), and application support folders aren't things most users need to interact with daily.

Hidden files fall into a few distinct categories: files prefixed with a dot (.bash_profile, .zshrc, .DS_Store), folders flagged with the hidden attribute at the filesystem level (like /usr, /private, /Library), and system directories Apple has explicitly excluded from Finder's default view.

Method 1: The Keyboard Shortcut in Finder 🔍

The fastest way to toggle hidden files visible in Finder is with a keyboard shortcut:

Command (⌘) + Shift + Period (.)

Press this while a Finder window is open and all hidden files and folders in that location will appear, shown in a slightly greyed-out style to distinguish them from regular files. Press the same combination again to hide them.

This shortcut works across most standard Finder windows — your home folder, Documents, Desktop, and external drives. It does not require any Terminal commands or admin privileges, making it the most accessible option for everyday users.

Method 2: Using Terminal to Show Hidden Files System-Wide

If you want hidden files to remain visible across all Finder windows persistently — not just during a session — Terminal gives you that control. Open Terminal (found in Applications > Utilities) and enter:

defaults write com.apple.finder AppleShowAllFiles true killall Finder 

Finder will restart and all hidden files will be visible going forward. To reverse this:

defaults write com.apple.finder AppleShowAllFiles false killall Finder 

This method is particularly useful for developers or power users who regularly work with dotfiles, virtual environment folders, or Git repositories where hidden configuration files are part of the workflow.

Method 3: Navigating Directly to a Hidden Folder

Sometimes you don't need to see all hidden files — you just need to reach one specific location, like the Library folder inside your user home directory, which macOS hides by default.

In Finder, use Go > Go to Folder (or press Command + Shift + G) and type the path directly:

  • ~/Library — your user Library folder (application preferences, caches, app support data)
  • /Library — the system-wide Library folder
  • /usr/local — common location for developer tools and package manager files
  • ~/.config — configuration files for many command-line tools and apps

This approach surfaces a specific hidden directory without making all hidden files globally visible, which is useful when you want targeted access without altering your Finder experience.

Method 4: Accessing the Library Folder Through the Go Menu

The Library folder deserves its own mention because it's one of the most frequently needed hidden locations. Apple provides a semi-hidden path to it:

  1. Open Finder
  2. Click Go in the menu bar
  3. Hold down the Option (Alt) key

The Library option will appear in the dropdown while Option is held. Click it to open your user Library directly. This is a read-the-room feature — Apple knows power users need it, but keeps it out of sight for general users.

What's Different Between macOS Versions

The behavior of hidden files and how they're surfaced has been largely consistent since macOS Sierra (10.12), when Apple introduced the Command + Shift + Period shortcut for Finder. Earlier versions of macOS required Terminal commands exclusively to show hidden files.

On macOS Ventura, Sonoma, and later versions, the shortcut and Terminal methods both remain fully functional. The underlying hidden file mechanism (Unix-style dotfiles + filesystem hidden flags) hasn't changed in any meaningful way across recent macOS releases.

MethodPersistenceRequires TerminalAdmin Rights Needed
⌘ + Shift + .Session onlyNoNo
Terminal defaults commandPermanentYesNo (standard user)
Go to Folder (⌘ + Shift + G)One-time navigationNoNo
Option + Go MenuOne-time navigationNoNo

Variables That Affect Your Approach

Which method makes the most sense depends on a few factors specific to your situation:

Frequency of access — If you're a developer regularly editing dotfiles or working inside hidden directories, the persistent Terminal method removes friction from your daily workflow. If you need to access a hidden file once, the keyboard shortcut is quicker.

Technical comfort level — The Finder keyboard shortcut requires no technical knowledge. Terminal commands require basic familiarity with command-line syntax, though the commands involved here are minimal.

What you're trying to find — A specific known folder (like ~/Library/Application Support) is best accessed via Go to Folder. An unknown hidden file you're hunting for is better found by toggling all hidden files visible first.

Risk tolerance — Making all hidden files visible exposes system files that can be accidentally modified or deleted. Some users prefer targeted access methods to limit that exposure.

The right combination of these methods depends on what you're working with, how often you need access, and how comfortable you are with files that macOS deliberately puts out of arm's reach.