sw_vers

Print macOS version information

Options

NameDescription
-productNamePrint product name
-productVersionPrint product version
-buildVersionPrint build version