Show Hidden Files in Finder with AppleShowAllFiles

A Finder preference flip reveals dot-files like .zshrc and the greyed-out system items Finder normally skips.

macOSFinderHidden filessettingsMedium risk
Run `defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder`; hide them again with -bool false.

01Command

Command
$ defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder

02What it does

Finder hides Unix-style dot-files and certain system locations to protect them from casual edits. Toggling AppleShowAllFiles is the permanent equivalent of pressing Cmd-Shift-Period in a Finder window, which temporarily reveals hidden items. You will suddenly see .DS_Store files everywhere plus folders like /usr and /etc on the startup disk — expected, and mostly read-only. Turn it off again when done: deleting a hidden file you don't recognize can break app settings or the system.

03Risk

RiskMedium risk
RequirementsHidden files are hidden for a reason — avoid deleting anything you cannot identify.
!Warning: Only delete hidden files you can positively identify.

04Undo

Undo
$ defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder

05Sources

Last verified: 2026-09-18 · Category: System & Settings

06Related solutions