tldr/pages/osx/sw_vers.md

16 lines
293 B
Markdown
Raw Normal View History

# sw_vers
> Print macOS operating system version information.
- 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`