sw_vers - what version of OSX am I running?
Archive - Originally posted on "The Horse's Mouth" - 2009-02-03 06:14:03 - Graham EllisWant to check what version of OSX is on a particular machine? Use the sw_vers command:
Dorothy:f9php grahamellis$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.5.4
BuildVersion: 9E17
Dorothy:f9php grahamellis$
or in a shell script, with the -productVersion option ...
Dorothy:f9php grahamellis$ sw_vers -productVersion
10.5.4
Dorothy:f9php grahamellis$