Determine Os X Version From The Command Line

Check Date

Works on 2019-03-19 14:41:03+0800 System Version macOS 10.13.6

Question

How to “Determine OS X version from the command line”?

Answer

$ system_profiler SPSoftwareDataType
    System Software Overview:

      System Version: macOS 10.13.6 (17G65)
      Kernel Version: Darwin 17.7.0
      ...

Reference

Published 19 Mar 2019

Bring the answer to lost vistor
MagicRabbit on Twitter