tldr/pages/osx/sw_vers.md

17 lines
350 B
Markdown
Raw Permalink Normal View History

# sw_vers
> Print macOS operating system version information.
2021-11-14 19:45:59 +00:00
> More information: <https://ss64.com/osx/sw_vers.html>.
- Print all available information (OS name, version number, and build):
`sw_vers`
- Print only the version number of the operating system:
`sw_vers -productVersion`
- Print only the build identifier:
`sw_vers -buildVersion`