25 Top OS X Terminal Tips
Posted 06/25/2010 at 10:53am
| by Ian Osborne
7. Hybrid Dock Folders
For a different version of a Dock folder or Stack’s List option, type: defaults write com.apple.dock use-new-list-stack -boolean YES; killall Dock
This gives you an interesting hybrid of the List and Grid viewing options. Your List view icons are bigger, and if there are more items than fit the window, you can scroll through them in the same way as you would in Grid view. Also like Grid view, clicking a folder now opens it within the Stack. If you find you don’t like these changes, type the command again, replacing YES with NO.
8. Inspect the Web
Safari’s Web Inspector offers a great deal of detail about web pages, and it’s invaluable for serious web developers. You can activate it using Safari’s Debug Menu outlined in No. 11, but if you only want the Web Inspector, type: defaults write com.apple.Safari WebKitDeveloperExtras -bool true
After restarting Safari, you can now access the Web Inspector by right-clicking a web page and selecting it from the contextual menu. As you might guess, you can deactivate this feature by repeating the command, but replacing true with false and restarting Safari.
9. Debug iCal
Like many OS X applications, iCal has a Debug mode that can be activated through Terminal. Type: defaults write com.apple.iCal IncludeDebugMenu YES
A new menu bar pull-down titled Debug appears. You can hide it again by repeating the code but replacing YES with NO. iCal must be restarted for changes to take effect.
10. Debug Address Book
Address Book also has a hidden Debug menu. To enable it, type: defaults write com.apple.addressbook ABShowDebugMenu -bool YES
The Debug pull-down appears in the menu bar. To disable it again, repeat the command and replace YES with NO at the end. The application must be closed and restarted for these commands to take effect.
11. Quick Tip

To enable a debug menu in Safari 4, type: defaults write com.apple.safari IncludeInternalDebugMenu 1
Quit Safari and restart it for the hack to take effect, giving you an extra menu bar pull-down labeled Debug. To get rid of it again, repeat the command, replacing the 1 at the end with 0. A restart is again required.
12. Enable X-Ray Folders in Quick Look
A. Folders Can Look Dreary

If you highlight a file in the Finder and press the Space bar, you activate Quick Look, giving you information about the item in question and possibly a preview of the file. Folders look pretty dull in Quick Look, as you can see here.
B. See Through the Veil

Fortunately, you can spice up your folder-viewing experience, and Terminal is the way. To make Quick Look give you an X-ray image of a folder, simply type: defaults write com.apple.finder QLEnableXRayFolders -boolean YES
C. X-Ray Vision is Yours

Quick Look now offers an X-ray view of a folder with an icon that shows you what’s inside it. To disable this feature, type the command again, replacing YES with NO. Quick Look folders are returned to their customary state.
13. Quick Tip

To turn the Dock icons translucent for applications that are open but hidden, type: defaults write com.apple.Dock showhidden -bool YES; killall Dock
Repeat the command, replacing YES with NO to disable this feature. Icons for applications that are already hidden when you activate this feature will not appear translucent unless you show and then hide them again.
Next: Terminal Tips Continued >>