macos community v1.0.0

sw_vers

Prints macOS version information.

📋 Live Preview
sw_vers
sw_vers

Sandbox: execFile · Timeout: 30s

Capabilities

discovery.enumerate

Examples

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

Detection

TypeRule / Indicator
other No detections at time of publishing

Documentation

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

References