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.3.2
BuildVersion: 7D24
Get Mac OS X Panther in a Nutshell, 2nd Edition 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.