macOS / binaries /

sw_vers

/usr/bin/sw_vers
Print macOS version information

sw_vers prints macOS version information for the currently running operating system on the local machine.

source: man