Terminal Hax: Showing Hidden .FILES in Mac

By default, .FILE_OR_FOLDER_NAME files or folders are hidden. To see them in Finder, open up Terminal and enter the following.

# The first line will get all hidden folders and Files to be shown
# The second line will close and reopen Finder windows so the changes will
# take effect.
defaults write com.apple.finder AppleShowAllFiles YES
killall Finder
# To hide the files/folders once more
defaults write com.apple.finder AppleShowAllFiles NO
killall Finder

view raw
hidden_files.sh
hosted with ❤ by GitHub