The fastest way to show hidden files on Mac
Hidden files on Mac are real files your system hides by default — they usually start with a dot (.) and contain settings or system data you rarely need to touch. To show them, use the keyboard shortcut Command + Shift + Period (the period key). Press it once to reveal hidden files; press it again to hide them. This works in Finder windows and file dialogs across most Mac applications.
If the keyboard shortcut does not work, you can also open Terminal (find it in Applications > Utilities) and type defaults write com.apple.finder AppleShowAllFiles true, then press Enter. Quit and reopen Finder afterward. To hide them again, replace "true" with "false" in that same command.
Both methods work on any recent Mac running macOS. The keyboard shortcut is faster if you only need to peek at hidden files occasionally; the Terminal method is better if you want hidden files to stay visible permanently.
Key Takeaways
- Press Command + Shift + Period in Finder to toggle hidden files on and off instantly.
- Hidden files usually start with a dot and contain system settings or configuration data you rarely need to change.
- If the keyboard shortcut does not work, use Terminal to run a defaults command that makes hidden files permanently visible.
- Hidden files remain hidden in file dialogs within some applications even after you show them in Finder — use the keyboard shortcut within those dialogs to reveal them there too.
When you might need to see hidden files
Most hidden files are configuration files that Mac hides to prevent accidental deletion or editing. Common ones include .DS_Store (stores folder view settings), .bash_profile (shell settings), and .ssh (contains security keys for remote servers). You typically need to see them when troubleshooting, backing up specific settings, or following instructions that reference a hidden folder by name.
If you are following a guide that tells you to edit a file in your home folder and the file is not visible, it is probably hidden. The keyboard shortcut will reveal it without changing any system settings. Once you are done, press the shortcut again to hide them.
Using Terminal to permanently show hidden files
Open Terminal by pressing Command + Space, typing "terminal", and pressing Enter. Type this command exactly:
defaults write com.apple.finder AppleShowAllFiles true
Press Enter, then quit Finder completely (Command + Q) and reopen it. Hidden files will now stay visible until you reverse the setting. To hide them again, open Terminal and type the same command but replace "true" with "false".
This method changes a system preference rather than toggling the view temporarily. Use it if you work with hidden files regularly and do not want to press the keyboard shortcut every time you open Finder.
Hidden files in file dialogs and save windows
When you open a file dialog (the window that appears when you choose File > Open in an application), hidden files may not appear even if you have shown them in Finder. Use the same keyboard shortcut — Command + Shift + Period — inside the file dialog to reveal them there. This works in most Mac applications including text editors, browsers, and productivity software.
Some older applications may not support this shortcut in their file dialogs. If it does not work, you can navigate to the hidden file's location in Finder first, then drag it into the application window instead.
What hidden files are safe to edit or delete
Most hidden files should not be touched unless you are following specific instructions. System files like those in /Library or /System are critical to Mac operation. However, some hidden files in your home folder are safe to modify: .bash_profile and .zshrc (shell configuration), .gitconfig (Git settings), and .ssh/config (SSH settings) are commonly edited by developers and power users.
Before editing any hidden file, make a backup copy first. Right-click the file in Finder, choose Duplicate, and keep the copy somewhere safe. If something breaks, you can restore the original. Never delete a hidden file unless you are certain what it does.
Showing hidden files on external drives and USB devices
The keyboard shortcut works on external drives and USB devices the same way it works on your Mac's main drive. Connect the device, open it in Finder, and press Command + Shift + Period to reveal hidden files on that device. The setting does not carry over — if you hide files again and then disconnect the drive, the files will be hidden again when you reconnect it later.
If you want hidden files to stay visible on an external drive permanently, you can run the Terminal defaults command while the drive is connected. The setting will then apply to that drive specifically.
Frequently Asked Questions
Why does Mac hide these files in the first place?
Hidden files are usually system or configuration files that users rarely need to see. Hiding them keeps the Finder window cleaner and reduces the chance of accidentally deleting something important. You can show them whenever you need to without affecting how Mac works.
Is it safe to show all hidden files permanently?
Yes. Showing hidden files does not change them or make them dangerous. It only changes what you see in Finder. You can leave them visible without risk, though your Finder windows will be more cluttered with system files you probably do not need to see.
What if the keyboard shortcut does not work?
Make sure you are pressing Command (not Control) and Shift together, then the Period key. If it still does not work, use the Terminal method instead: open Terminal, type defaults write com.apple.finder AppleShowAllFiles true, press Enter, then quit and reopen Finder.
Can I hide files I create myself?
Yes. In Terminal, type chflags hidden /path/to/file to hide any file. Replace "/path/to/file" with the actual file path. To unhide it, use chflags nohidden /path/to/file. This is useful if you want to keep personal files out of sight without moving them to a separate folder.
Do hidden files take up storage space?
Yes, hidden files use storage just like visible files. Hiding them only changes whether Finder displays them — it does not compress them or move them anywhere. If you need to free up space, you would need to delete the files, not just hide them.