# sw_vers

> Prints macOS version information.

sw_vers prints macOS version information, including the exact macOS version number.

- Page: https://loobins.io/binaries/sw_vers/
- Author: Eliott (@Koyiott)
- Created: 2023-09-11
- Tactics: Discovery

## Paths

- `/usr/bin/sw_vers`

## Example Use Cases

### Retrieving macOS Version Information

Fetch detailed macOS version information including the build version, product name, and product version.

```bash
sw_vers
```

- Tactics: Discovery
- Tags: bash, configuration

### Retrieving macOS Product Version

Fetch macOS product version.

```bash
sw_vers -productVersion
```

- Tactics: Discovery
- Tags: bash, configuration

### Retrieving macOS Product Name

Fetch detailed macOS product name.

```bash
sw_vers -productName
```

- Tactics: Discovery
- Tags: bash, configuration

### Retrieving macOS Build Version

Fetch detailed macOS build version.

```bash
sw_vers -buildVersion
```

- Tactics: Discovery
- Tags: bash, configuration

## Detections

- No detections at time of publishing

## Resources

- [macOS/binaries/sw_vers](https://macosbin.com/bin/sw_vers)
- [sw_vers man page](https://ss64.com/osx/sw_vers.html)
