By default, macOS conceals thousands of core system files, configuration dotfiles (such as .zshrc, .git, and .bash_profile), and the user ~/Library folder to protect critical operating system directories from accidental deletion. However, developers, creative professionals, and power users frequently need to access these hidden resources to manage cache files, tweak application preferences, or inspect local repository settings. Fortunately, modern versions of macOS include a universal keyboard shortcut that reveals all hidden files in an instant. Here is how to use it.
The Universal Keyboard Shortcut to Toggle Hidden Files
You can toggle hidden file visibility in any Finder window or open/save file dialogue box without touching the Terminal:
- Open Finder by clicking its smiling icon in your Dock, or open any folder where you suspect hidden files exist (such as your user Home folder).
- Press the following three keys simultaneously on your keyboard:
Command + Shift + Period (.)
- Finder will refresh instantaneously. All hidden folders and files will become visible, styled with a distinct, semi-translucent grey appearance to differentiate them from standard files.
- To hide them again and restore clean viewing, simply press Command + Shift + Period (.) a second time.
Quickly Accessing Your Hidden User Library Folder
The ~/Library directory holds application support databases, user caches, and browser profile settings. While the keyboard shortcut makes it visible, Finder provides an even faster direct jump:
- Click anywhere on your desktop wallpaper or open Finder.
- Click the Go menu in the menu bar at the top of your screen.
- Press and hold the Option (or Alt) key on your keyboard.
- The Library entry will magically appear in the Go menu list between “Home” and “Computer”.
- Click Library to enter the directory immediately.
Safety Precautions When Working with Hidden Files
Because hidden dotfiles directly impact operating system stability:
- Do not rename dotfiles: Files starting with a period are designated as system configurations. Removing the leading dot or altering file names can break application functionality.
- Avoid mass deletion in
/private/var: Only modify or delete files inside folders you explicitly recognise (such as a specific application’s leftover cache inside~/Library/Caches). - Toggle back off: Once you finish editing your configuration file, press Command + Shift + Period (.) to hide dotfiles again to prevent accidental dragging into wrong directories.