I frequently find myself SSHing into various OS X machines, and it'd be useful if I could tell what version of OS X I was on when I'm doing that. uname -a doesn't quite work, since Darwin kernel versions don't always change with the rest of the system.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|
The answer that suggested
My suggestion is to use
|
||||
|
|
|
The easiest way is:
From http://tinyapps.org/blog/mac/201008140700_os_x_version_terminal.html:
|
||||
|
|
|
Try this:
|
|||||
|
|
Here is a Blog article with instructions How to Get the Mac OS X Version in a Shell Script
|
|||
|
|
|
Open Terminal.app
|
|||
|
|
