sw_vers Command Examples

Print macOS operating system version information. More information: https://keith.github.io/xcode-man-pages/sw_vers.1.html.

sw_vers

sw_vers -productVersion

sw_vers -buildVersion