Get the operating system version on a macOS machine?

nick asked this question 5 months ago
nick on Feb 27 · Edited

On my macOS machine, how can I get the current operating system version number?

Is there a way to do that via the command line? Or somewhere else using the GUI?

Any hints or help would be very helpful!

3 suggested answers
coderguy on Mar 26

You can use the system_profiler tool via the command line.

This command:

system_profiler SPSoftwareDataType

Will output information on your operating system:


    System Software Overview:

      System Version: macOS 12.3 (21E230)
      Kernel Version: Darwin 21.4.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: My Laptop
      User Name: My Name (myname)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 9 days 17:42

This will include your Kernal Version and System Version.

0 replies
timmy123 on Mar 26

Click the Apple menu () in the top left of your screen and select the About This Mac option.

That will open a window with information on your Mac.

0 replies
moon_man41 on Mar 26

Built into all Unix systems is the sw_vers command. It provides the version and build number of operating system being used.


This outputs something similar to this:

ProductName:    macOS
ProductVersion:    12.3
BuildVersion:    21E230

You can get specific items in that output like this:

sw_vers -ProductName
sw_vers -ProductVersion
sw_vers -BuildVersion
0 replies