show hide hidden files on mac os x

1. show hidden files in finder

open terminal and type in the following commands:

> defaults write com.apple.finder AppleShowAllFiles YES
> killall Finder

then relaunch Finder, the hidden files should be visible.

2. hide hidden files in finder

open terminal and type in the following commands:

> defaults write com.apple.finder AppleShowAllFiles NO 
> killall Finder

then relaunch Finder, the hidden files should be invisible.

Written on July 4, 2016