Introduce to many useful mac tricks.
$ sudo softwareupdate -l
#proposed update
$ sudo softwareupdate -i -a
#In case you want to set well-defined upgrade you have to enter this command:
$ sudo softwareupdate -i AppName
$ sips -Z 100x100 image.jpg
ctrl+u => delete from the cursor to the beginning of the line
ctrl+k => delete from the cursor to the end of the line
# enable safari develop tool
$ defaults write com.apple.Safari WebKitDeveloperExtras -bool true
# disable safari develop tool
$ defaults write com.apple.Safari WebKitDeveloperExtras -bool false
check show develop menu bar in Preference.
# disable dashboard
$ defaults write com.apple.dashboard mcx-disabled -boolean yes
$ killall Dock
# enable dashboard
$ defaults write com.apple.dashboard mcx-disabled -boolean false
$ killall Dock
$ defaults write com.apple.finder AppleShowAllFiles true
$ screen capture -S ~/Desktop/xxxx.jpg
# only allow mouse selection mode
$ screen capture -s ~/Desktop/xxxx.jpg
# to hide the desktop icons
$ defaults write com.apple.finder CreateDesktop -bool false
# to show the desktop icons
$ defaults write com.apple.finder CreateDesktop -bool true
⌘+⌥+ESC (COMMAND + OPTION + ESCAPE)
26 January 2013 Suzhou, ChinaCheers!