How to enable/ disable hidden files in MacOS


I see that by default mac hides all hidden files (files start with .) how can i enable those?

1 Answer

7 years ago by

You can simple run the following commands to enable/ disable hidden files in MacOS.

To Enable

defaults write com.apple.finder AppleShowAllFiles YES

To Disable

defaults write com.apple.finder AppleShowAllFiles NO

In both the cases you need to relaunch the Finder to see the effect

7 years ago by Karthik Divi