The first part of the version number (“major” version) is always 10 (so far). You can add the -productVersion argument to get just the product version number: $ sw_vers -productVersion On macOS you can get details on the version of the currently running system with the sw_vers command: $ sw_vers Note : I have a new post about this, updated for macOS 11 Big Sur: macOS Version Big Sur Update Getting the Version In many administration scripts, you need to check the version of macOS, to make sure you don’t try to access features that are not present on other versions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |