← All Binaries

sw_vers

sw_vers prints macOS version information, including the exact macOS version number.

Path
/usr/bin/sw_vers
Author
Eliott (@Koyiott)
Created
2023-09-11

Example Use Cases 4

Retrieving macOS Version Information #

Fetch detailed macOS version information including the build version, product name, and product version.

sw_vers

Retrieving macOS Product Version #

Fetch macOS product version.

sw_vers -productVersion

Retrieving macOS Product Name #

Fetch detailed macOS product name.

sw_vers -productName

Retrieving macOS Build Version #

Fetch detailed macOS build version.

sw_vers -buildVersion

Detections

  • No detections at time of publishing

Resources