Kinda Code
Home/Mac/How to check your macOS version from Terminal

How to check your macOS version from Terminal

Last updated: April 25, 2022

You can check your macOS version from the terminal by running the following command:

sw_vers

This command will produce output similar to this:

ProductName:	macOS
ProductVersion:	12.3.1
BuildVersion:	21E258

Screenshot:

That’s it. Further reading:

You can also check out our macOS category page for the latest tutorials and examples.