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
macOS RAM Disk Deep Dive: Is Memory Allocation Dynamic or Fixed?
Duration: 00:00 | DP | 2026-07-09 20:02:36Declutter Your Desktop: How to Change macOS Screenshot Save Location via Command Line
Duration: 00:00 | DP | 2026-07-10 08:05:12How to Fix "Permission denied" Error When Running Shell Scripts in Mac/Linux
Duration: 00:00 | DP | 2026-07-06 08:54:30macOS Advanced Guide: How to Elegantly Set Programs to Run at Startup
Duration: 00:00 | DP | 2026-07-07 09:20:15Boost Mac Productivity: How to Set F1-F12 as Standard Function Keys on macOS
Duration: 00:00 | DP | 2026-07-12 08:15:37Bypassing macOS Restrictions: How to Set a 1-Digit Login Password
Duration: 00:00 | DP | 2026-07-13 08:20:49How to Fix Mac mini Not Receiving SMS Messages and iCloud Sync Stuck
Duration: 00:00 | DP | 2026-07-06 22:07:00Why Do .smbdelete Hidden Files Appear After Deleting on Mac SMB Shares? Causes & Ultimate Solutions
Duration: 00:00 | DP | 2026-06-27 19:10:00Never Lose Output Again: How to Show Unlimited Scrollback History in macOS iTerm2
Duration: 00:00 | DP | 2026-07-21 21:05:04PhpStorm Shortcut Tips: How to Use Cmd+D to Select Next Occurrence Like Sublime Text
Duration: 00:00 | DP | 2026-07-28 09:38:55Cron Job Failing? The Ultimate Guide to Fixing 'docker: command not found'
Duration: 00:00 | DP | 2026-08-01 09:59:44Master 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:30Boost Your VS Code Productivity: Select All Occurrences in a Single Keystroke!
Duration: 00:00 | DP | 2026-06-27 14:25:00Decoding `realpath: command not found` and Its Chained Errors on macOS
Duration: 00:00 | DP | 2025-11-19 12:45:02Recommended
Solved: Fixing the 'TS2769: No overload matches this call' Error with vue-i18n in Vite
00:00 | 116Struggling with the TypeScript error TS2769 when u...
The Ultimate Guide to Pagination SEO: Mastering `noindex` and `canonical`
00:00 | 144Website pagination is a common SEO challenge. Mish...
Stop Hardcoding Your Sitemap! A Guide to Dynamically Generating Smart `priority` and `changefreq` with PHP
00:00 | 68Are you still using static values for `<priority>`...
macOS Advanced Guide: How to Elegantly Set Programs to Run at Startup
00:00 | 25There are multiple ways to set a program to run at...