Terminal Hacks - Show Hidden Files and Folders

To Show

  • Open Terminal: Finder > Applications > Utilities

In Terminal, type or paste the following…

defaults write com.apple.finder AppleShowAllFiles YES

(return)

  • Hold down the control + options keys together, left-click on the Finder icon and click Relaunch.

To Hide

  • Open Terminal: Finder > Applications > Utilities

In Terminal, type or paste the following…

defaults write com.apple.finder AppleShowAllFiles NO

(return)

  • Hold down the control + options keys together, left-click on the Finder icon and click Relaunch.

Originally posted 30 August, 2021.