How to Show Hidden Files on a Mac

The Diagnostic Obfuscation Vector

To protect the integrity of the operating system and prevent novice users from accidentally deleting critical configuration files, macOS intentionally hides thousands of files and directories from the standard Finder interface. These hidden files are easily identified by developers because they always begin with a period (e.g., `.htaccess` or `.bash_profile`). If you are attempting to configure a local web server or edit a hidden application preference file, you will find these documents completely invisible in the graphical interface.

How to Show Hidden Files

While you can use complex terminal commands to globally alter this behaviour, Apple built a highly efficient keyboard shortcut directly into the Finder that allows you to instantly toggle the visibility state of these protected files.

1. Open a new Finder window (click the blue smiling face icon in your Dock).
2. Navigate to the specific directory where you suspect the hidden files reside (for example, your primary Home folder, which contains hidden files like `.Trash` and `.zshrc`).
3. The Keyboard Override: Press and hold the following three keys simultaneously on your Mac keyboard:
Command + Shift + Period (.)
4. The Visual Shift: The Finder window will instantly refresh. Dozens of previously invisible files and folders will suddenly materialize on your screen.
5. To visually distinguish them from normal user files, macOS renders these hidden items with a slightly faded, translucent aesthetic.

Crucial Warning: Do not move, delete, or rename these translucent files unless you know exactly what you are doing. Deleting the wrong hidden file can severely corrupt an application. To hide them again and restore the safety barrier, simply press Command + Shift + Period (.) a second time.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.