Version info from the command line

Aug 28, '01 02:11:32PM

Contributed by: robg

In this MacWorld forum thread, JohnKFisher asked about getting OS X version info when connecting via SSH to another OS X box. After some back and forth, PaulM contributed the easy way to get this info:

[11:13am robg ~]% sw_vers
ProductName: Mac OS X
ProductVersion: 10.0.4
BuildVersion: 4Q12
Just type 'sw_vers' and you'll get the info on what version of OS X you've connected to. PaulM also points out that the traditional UNIX command is 'uname -a', and that this returns Darwin information on OS X:
[11:13am robg ~]% uname -a
Darwin localhost 1.3.7 Darwin Kernel Version 1.3.7: Sat Jun 9 11:12:48 PDT 2001;
root:xnu/xnu-124.13.obj~1/RELEASE_PPC Power Macintosh powerpc
[Carriage return added for easier readability]

Comments (1)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20010828141132104