The above commands use /System/Library/CoreServices/SystemVersion.plist file. One can print the version info as follows:$ cat /System/Library/CoreServices/SystemVersion.plist
1
ProductBuildVersion15B42 ProductCopyright 1983-2015 Apple Inc. ProductName Mac OS X ProductUserVisibleVersion 10.11.1 ProductVersion 10.11.1
On Mac OS X server, try:$ cat /System/Library/CoreServices/ServerVersion.plist
How do I find out OS X Darwin kernel version?
Simply type the following uname command to see operating system name including the machine hardware name, the nodename, the machine processor architecture name, the operating system release, the operating system name, and the operating system version:
1
uname -av
Sample outputs:
1
Darwin Viveks-MacBook-Pro.local 15.0.0 Darwin Kernel Version 15.0.0: Sat Sep 1915:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64