Command line to get os version

View: New views
4 Messages — Rating Filter:   Alert me  

Command line to get os version

by Scott Ribe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just need a command to differentiate 10.4 vs 10.5.

Must be in the grip of a wicked brain fart here. Can't remember it. Can't
dredge it up via apropos or google or even dead-tree sources.

--
Scott Ribe
scott_ribe@...
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________
MacOSX-admin mailing list
MacOSX-admin@...
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Re: Command line to get os version

by Scott Ribe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Must be in the grip of a wicked brain fart here. Can't remember it. Can't
> dredge it up via apropos or google or even dead-tree sources.

And... 10 seconds after posting this, I think of 1 more thing to try with
apropos, and got it ;-)

--
Scott Ribe
scott_ribe@...
http://www.killerbytes.com/
(303) 722-0567 voice




_______________________________________________
MacOSX-admin mailing list
MacOSX-admin@...
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Parent Message unknown Re: Command line to get os version

by Scott Ribe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> try "uname -r"

Thanks. It was uname that I was trying to remember, but sw_vers works better
for what I'm trying to do.

--
Scott Ribe
scott_ribe@...
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________
MacOSX-admin mailing list
MacOSX-admin@...
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Re: Command line to get os version

by Dan Shoop :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Sep 19, 2008, at 8:50 PM, Scott Ribe wrote:

>> try "uname -r"
>
> Thanks. It was uname that I was trying to remember, but sw_vers  
> works better
> for what I'm trying to do.


If you want the OS version, whose name is Darwin, then this is what  
uname will give you. It may seem funky to you until you consider that  
OS X is NeXT. It gives you the kernel release info, which is what the  
OS "is". (Everything else is software, not the OS, which is layered on  
top.)

If you want the software product information and product build number  
for Mac OS X (the stuff on top) then this is what sw_vers will give you.

There is a difference.

-d

------------------------------------------------------------------------
Dan Shoop
Computer Scientist
iWiring / U.S. Technical Services

shoop@...
AOL IM .................... iWiring
Nextel .................... 1-714-363-1174
Operations TOC (24/7) ..... 1-866-901-USTS
USTS Offices .............. 1-714-374-6300

For immediate response for urgent matters please speak to the Duty  
Officer
at the USTS Tactical Operations Center (above) who can reach me by  
radio.



_______________________________________________
MacOSX-admin mailing list
MacOSX-admin@...
http://www.omnigroup.com/mailman/listinfo/macosx-admin
LightInTheBox - Buy quality products at wholesale price!