How to find out macOS version information from Terminal command prompt

You can find the version of macOS installed on your Mac from the Terminal command prompt by using the sw_vers command. Here’s how:

  1. Open Terminal.
  2. Type the following command and press Enter:
sw_vers

This will display the version of macOS installed on your Mac, including the ProductName, ProductVersion, and BuildVersion. For example:

ProductName: Mac OS X
ProductVersion: 10.15.7
BuildVersion: 19H2

This information can be useful when you need to check which version of macOS you are running, or when you need to provide the version information to support or troubleshoot issues.

Leave a Comment