show hidden file

Tho show hidden file (file with x):

Mojave:

In finder CMD + Shift + . to toggle it

Before Mojave:

Show

defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app

Hide

defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app