On a MAC OS X system, you can obtain information on the operating system version from a command line interface, e.g. from a terminal session, which you can get by running the Terminal program in
Applications/Utilities, by using the sw_vers command.
$ sw_vers ProductName: Mac OS X ProductVersion: 10.8.3 BuildVersion: 12D78
If you are only interested in the ProductName, ProductVersion , or BuildVersion, you can specify arguments that will restrict the output to just that informaton.
$ sw_vers -productName Mac OS X $ sw_vers -productVersion 10.8.3 $ sw_vers -buildVersion 12D78
You can also get the OS X version number using the
system_profiler command.
$ system_profiler SPSoftwareDataType | grep "System Version"
System Version: OS X 10.8.3 (12D78)
