---
title: sysctl
framework: Installer JS
role: pseudoSymbol
path: installer_js/system/1812308-sysctl
---

# sysctl

Provides the result of a sysctlbyname() call using the given selector.

## Declaration

```data
sysctl(selector)
```

## Parameters

- `selector`: String with the hardware selector for the desired data.

## Return Value

Return Value Hardware data corresponding to selector.

## Overview

Overview Use man sysctl in the macOS Terminal application to see a list of hardware selectors. tip: If you are using this function to screen for hardware features at install-time, consider using the “Pre-install Requirements Property List” setting of productbuild instead. Use man productbuild in the macOS Terminal application to see a list of supported requirement keys.

## See Also

### Accessing System Information

- [users.desktopSessionCount](installer_js/system/1812277-users_desktopsessioncount.md)
- [version](installer_js/system/1812284-version.md)
