defaults write com.apple.finder AppleShowAllFiles TRUE
反対に元に戻す時には、
defaults write com.apple.finder AppleShowAllFiles FALSE