Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know how to find Mac OS X version from GUI: Apple Menu (top left) > About This Mac

Is there a Terminal command that will tell me Mac OS X version?

share|improve this question
add comment

2 Answers

up vote 52 down vote accepted

You have a few options:

sw_vers -productVersion 

system_profiler SPSoftwareDataType

Either will do what you need, and will have an output format that's parseable (if that's what you're after).

share|improve this answer
1  
sw_vers is all I need. Thanks! :) –  Željko Filipin Nov 25 '09 at 21:09
2  
The first one only gives you the OS version (ie, "10.7.5"). The second one gives you a lot of additional information such as 32/64-bit. –  Kent May 27 '13 at 22:52
    
Nice one! I was going made looking for lsb_release or something along those lines. Never would have spotted those scripts. :D –  Alastair Feb 8 at 0:43
add comment

The command sw_vers shows the version.

For older Mac OS's you can find useful information in Wikipedia.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.