Thursday, February 07, 2008

Tip - Get the OS X Version from CLI

If you are logged into OS X as usual, you can get your system version from "About This Mac" in the Apple menu. This is not helpful when you are remotely connected to a server via SSH, however. So how do you do it? You can get OS X's version from the command line, like this:

jrclt2007:~ rcogley$ sw_vers
ProductName:    Mac OS X
ProductVersion:      10.5.1
BuildVersion:  9B18

No comments: