Having recently joined the dark side and purchased a Mac Mini, there are a few Terminal commands I find myself needing regularly, but always forgetting. So I’ll keep them here.

Note: MacOS is really Linux…. but we don’t tell the Apple Fanboys that – they’d get confused!

 

1. Show hidden files in the finder

$ defaults write com.apple.finder AppleShowAllFiles True
$ Killall Finder

2. Hide hidden files in the finder (the opposite of the above)

$ defaults write com.apple.finder AppleShowAllFiles False
$ Killall Finder

(the $ indicates the command prompt)