Version of MacOSX from the terminal?

bwanabob

Timelord
I want to be able to find out which version of MacOSX I am running from the terminal. Is there a command line tool to do this? "uname" only reports back the version of the kernal. Nothing more. I need to know which version (ie: 10.1.5) of MacOSX.

Bob..
 
sw_vers

[level9:~] me% sw_vers
ProductName: Mac OS X
ProductVersion: 10.1.5
BuildVersion: 5S60
 
Thanks!

Is there a man page kicking around? I want to simplify the output so that I can use this command in an Opensource Makefile.

bob..
 
Back
Top