O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

sw_vers

Synopsis

sw_vers [option]

Displays the product name, version, and build version for the OS.

Options

-productName

Display the name of the operating system, resulting in Mac OS X.

-productVersion

Display the version number of the operating system.

-buildVersion

Display the build number of the operating system.

Example

Display the version information for your system:

$ sw_vers
ProductName:     Mac OS X
ProductVersion: 10.4.2
BuildVersion:    8C46

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required