Show Hidden Files on Mac: The Ultimate Guide (2 Easy Methods)
Content
## Why Are Some Files Hidden?
In macOS, many files and folders that begin with a `.` (dot) are hidden by default. This is a protective measure to prevent users from accidentally modifying or deleting important system and application configuration files (e.g., `.bash_profile`, `.zshrc`, or the `.git` folder in a project), which could lead to system instability or application errors.
However, for developers and power users, viewing and editing these hidden files is a common task. Below, DP from **wiki.lib00.com** will introduce the two most popular methods for displaying hidden files on a Mac.
---
## Method 1: Use the Keyboard Shortcut (Recommended & Quickest)
This is the most convenient and highly recommended method, available on macOS Sierra (10.12) and newer. It acts as a toggle, allowing you to switch visibility on and off instantly.
1. Open **Finder**.
2. Inside any folder, press the following key combination:
```
Command + Shift + .
```
(The `.` is the period key).
3. Hidden files and folders will immediately appear, usually with a semi-transparent icon.
4. Press the same shortcut again to hide them.
This method is perfect for temporary viewing, as you can quickly revert the setting, minimizing the risk of accidental modifications.

---
## Method 2: Use the Terminal Command (Permanent Setting)
If you prefer to have all hidden files visible by default until you manually change it back, you can use a Terminal command.
1. **Open Terminal**: You can find it in `Applications` > `Utilities`, or launch it quickly via Spotlight Search.
2. **Execute the Show Command**: Copy and paste the following command, then press Enter.
```bash
defaults write com.apple.finder AppleShowAllFiles -bool true
```
3. **Restart Finder**: To apply the changes, you need to restart Finder. Type the following command in Terminal and press Enter.
```bash
killall Finder
```
After this, all hidden files will be visible by default across your system, including in your `wiki.lib00` project folders.
### How to Revert to Hiding Files?
When you no longer need hidden files to be permanently visible, simply change `true` to `false` in the command.
1. Execute in Terminal:
```bash
defaults write com.apple.finder AppleShowAllFiles -bool false
```
2. Restart Finder again:
```bash
killall Finder
```
---
## Important Note: Proceed with Caution
- **Do Not Modify Casually**: Most hidden files in macOS are critical system files or application configurations (like a hypothetical `.lib00_config`). Unless you are absolutely sure of what you are doing, do not delete or alter them. Doing so could cause system instability or application crashes.
- **Prefer the Shortcut**: For most everyday needs, we strongly recommend using **Method 1 (the keyboard shortcut)**. It's safer, more efficient, and helps prevent long-term risks associated with forgetting to revert a permanent setting.
Related Contents
Master Sublime Text Code Folding: The Ultimate Shortcut Guide to Unfold/Fold Blocks Instantly
Duration: 00:00 | DP | 2026-01-07 08:06:27NVM/Node Command Not Found in New macOS Terminals? A Two-Step Permanent Fix!
Duration: 00:00 | DP | 2025-12-04 09:35:00Boost Your WebStorm Productivity: Mimic Sublime Text's Cmd+D Multi-Selection Shortcut
Duration: 00:00 | DP | 2025-12-04 21:50:50One-Command Website Stability Check: The Ultimate Curl Latency Test Script for Zsh
Duration: 00:00 | DP | 2025-12-07 23:25:50How Can a Docker Container Access the Mac Host? The Ultimate Guide to Connecting to Nginx
Duration: 00:00 | DP | 2025-12-08 23:57:30Decoding `realpath: command not found` and Its Chained Errors on macOS
Duration: 00:00 | DP | 2025-11-19 12:45:02Files Mysteriously Missing in PHPStorm? Check Your Project View First!
Duration: 00:00 | DP | 2026-01-15 08:16:46Linux Command-Line Mystery: Why `ll` Hides Files like `.idea` & The Ultimate `ls` vs. `ll` Showdown
Duration: 00:00 | DP | 2025-12-01 08:08:00Unlock Your Mac: The Ultimate Guide to Showing and Hiding Hidden Files in Finder
Duration: 00:00 | DP | 2025-11-19 21:16:36macOS Hosts File Doesn't Support Wildcards? Here's the Ultimate Fix with Dnsmasq!
Duration: 00:00 | DP | 2025-11-20 05:48:10One-Click Code Cleanup: The Ultimate Guide to PhpStorm's Reformat Code Shortcut
Duration: 00:00 | DP | 2026-02-03 09:34:00Why Are My Mac Files Duplicated on NFS Shares? The Mystery of '._' Files Solved with PHP
Duration: 00:00 | DP | 2025-12-18 16:58:20Say Goodbye to Clutter: Master Sublime Text Code Folding with These Essential Shortcuts
Duration: 00:00 | DP | 2025-11-24 03:35:20PhpStorm Bookmark Shortcut Mystery: F11 or F3? The Definitive Answer!
Duration: 00:00 | DP | 2026-02-07 10:58:25Recommended
The Hidden Cost of Speed: How Much Space Do MySQL InnoDB Indexes Really Consume?
00:00 | 2MySQL indexes are essential for query performance,...
The Ultimate Guide to PHP's nl2br() Function: Effortlessly Solve Web Page Line Break Issues
00:00 | 37Struggling with newline characters from textareas ...
Vite's `?url` Import Explained: Bundled Code or a Standalone File?
00:00 | 33In a Vite project, when you use `import myFile fro...
Dynamically Update Page Titles in Vue Router: From Basics to i18n and TypeScript
00:00 | 38Still manually updating page titles in your Vue ap...