Show hidden files on Mac
Make Finder display hidden (dot) files and folders.
Run the command below in Terminal, then Finder restarts and hidden files (names starting with a dot, plus system folders like /Library in your home folder) become visible.
01Command
Command
$ defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder02What it does
Finder hides files whose names begin with a period. The defaults command changes Finder's AppleShowAllFiles preference to true, and killall Finder restarts Finder so the change takes effect immediately. Your files are not modified — only Finder's view setting changes.
03Risk
!Warning: You will now see system files everywhere. Do not move or delete files you do not recognize.
04Undo
Undo
$ defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder05Sources
- macOS defaults command referenceEvidence: AppleShowAllFiles toggles Finder display of hidden files; Finder must be restarted.
- macOS User Guide — view hidden filesEvidence: Finder hides files and folders whose names begin with a dot.
Last verified: 2025-11-20 · Category: Files & Folders