How to hide - view hidden files in Mac OS X 10.11 El Capitan


Very quickly, through some simple command lines, users are able to hide files and view hidden files in El Capitan.

Open Terminal (found in Finder > Applications > Utilities)

I. Show hidden files in finder
Use the following command lines.

defaults write AppleShowAllFiles TRUE


killall Finder

To hide these files, change TRUE to FALSE

defaults write AppleShowAllFiles FALSE

II. How to hide a file or folder in Mac OS X?
Firstly, enter the following command line.

chflags hidden [The direction of file or folder (you can drag and drop the file or folder into terminal window, then hit Enter)]

To un-hide:

chflags nohidden [The direction of file or folder]


I can’t stand using Terminal. There is a much easier way to hide or show hidden files - a free app Funter
You should mention about it.