Update OS X via terminal

Nifty and a quick way to check for any recent updates for OS X from the command prompt:

sudo softwareupdate -i -a