Mac OS X 日常技巧总结(continuous updating)

Restarting the Mac OS X Dock, Finder, Spaces or Menubar

The Finder crashed:
killall -KILL Finder
(you can also restart the Finder by option (=alt) + rightclicking the Finder icon in the Dock and selecting Relaunch. It doesn’t always work though.)

The Dock/Spaces crashed:
killall -KILL Dock

The Menubar crashed/refuses to be clickable:
killall -KILL SystemUIServer

Clean Up Your Mac’s “Open With” Contextual Menu

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user