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

Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.