Name
sw_vers
Synopsis
sw_vers
Displays the product name, version, and build version for the OS; for example:
% sw_vers -h
ProductName: Mac OS X
ProductVersion: 10.2.2
BuildVersion: 6F21
Get Mac OS X 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.