Sometimes it is necessary to display the hidden files in the system, which is not as convenient as the Windows system in MAC (tick the option to operate) and need to be executed in Terminal:
localhost: ~ mx $ defaults write com.apple.finder AppleShowAllFiles -bool true // show
localhost: ~ mx $ killall Finder
localhost: ~ mx $ defaults write com.apple.finder AppleShowAllFiles -bool false // Hide
localhost: ~ mx $ killall Finder
In order to open the hidden files, so open implementation is too troublesome, and each time to enter so long a heap, it is too troublesome, so you have to use the Mac system Automator to create a convenient form
1. Open Automator Select Service
2. Modify the execution location and receive parameter types
Above the edit box on the right, select: Service receives "no input" in "Finder.app"
3. Add a hint message (can be ignored)
Add tip information to prevent accidental operation
Select Utilities, Ask for confirmation drag to the right after the interface shown below
4. Perform actions based on the results of the prompt message box
Drag Utilities. Run Shell Script below the hint message and enter:
if [ `defaults read com.apple.finder AppleShowAllFiles` != "TRUE" ];
then
defaults write com.apple.finder AppleShowAllFiles TRUE
else
defaults write com.apple.finder AppleShowAllFiles FALSE
fi
killall Finder
Such as
Note: The"'" in the If [] is not a single quote, it is the key entered under the keyboard ESC
5. Click Run in the top right corner to view the effect, export and install
Double-click the exported file:
You will get a hint to execute the install:
6. View usage location and installation location
The When top tool file is available in the Finder program when you can open it in services
Turn on or off show hidden files, Finder, Services
To view the installation location, you can find "turn show hidden files on or off" in system perferences (Systems Preferences)-Keyboard (Keyboard)-->shortcuts (shortcut key)-->services, right-- Show in Finder
How to quickly show hidden files under Mac OS X System (create workflow using Automator)