Facebook X (Twitter) Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook X (Twitter) Instagram
    TecAdmin
    You are at:Home»MacOS»How to Check MacOS Version (GUI+CLI)

    How to Check MacOS Version (GUI+CLI)

    By RahulSeptember 22, 20222 Mins Read

    The macOS 12 is the latest release by the Apple team. Its code name is Monterey, derived from an unmapped wilderness area that lies along the coast south of Monterey. The is the most advanced desktop operating system with a new level of power and beauty.

    This tutorial will describe how to check the macOS version from the desktop and command-line interface.

    Check MacOS Version (GUI)

    Login to your macOS system. In the top-left corner, click on the apple icon. Then click the “About This Mac” in the dropdown menu. See the below screenshot:

    Check MacOS Version Details
    Click on the “about this mac”

    This will display the macOS version along with the system configuration details.

    How to Find MacOS Version
    Show macOS version details

    The above screenshot shows that we’re using macOS Monterey, which is version 12.5.

    Check MacOS Version via CLI

    Open the terminal application on your macOS and type the following command to check the macOS version.

    sw_vers 
    

    Output:

    ProductName:    macOS
    ProductVersion: 12.5
    BuildVersion:   21G72
    

    You can also fetch the specific values only. Which can be useful for scripting like shell scripts. Use the following command line parameters:

    • Use -productName to print the value of the ProductName only
      sw_vers -productName
      
      macOS
      
    • Use -productVersion to print the value of ProductVersion. This is the version of your macOS, which is generally required with scripting to check the macOS version:
      sw_vers -productVersion
      
      12.5
      
    • Use -buildVersion to print the value of the BuildVersion property only.
      sw_vers -buildVersion
      
      21G72
      

    Conclusion

    In this tutorial, you have learned to check the macOS version running on your Apple desktop system. That helps you to find the correct packages for the macOS and make automation scripts.

    macOS OSX version
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Enable Bash Completion on macOS

    How to Switch Between Zsh and Bash on macOS: A Comprehensive Guide

    How to Set Up Apache, MySQL, and PHP on macOS: A Comprehensive Guide

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Difference Between Full Virtualization vs Paravirtualization
    • Virtualization vs. Containerization: A Comparative Analysis
    • Using .env Files in Django
    • Using .env File in FastAPI
    • Setting Up Email Notifications for Django Error Reporting
    Facebook X (Twitter) Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.