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