OS X version info from the command line

ericmurphy

Registered
It's not too difficult to get version info for Unix daemons (httpd, sshd, ssld) from the command line. But what about the OS itself? Is there a way to get the OS X version or the Darwin version from the command line? I'm sure there must be...
 
Yup,

Code:
$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.1.3
BuildVersion:   5Q45

$ uname -a
Darwin host.domain.com 5.3 Darwin Kernel Version 5.3: Thu Jan 24 22:06:02 PST 2002;
root:xnu/xnu-201.19.obj~1/RELEASE_PPC  Power Macintosh powerpc
 
Back
Top