getconf(1)

getconf1

Get configuration values

Usage

getconf [-Ll] [-v specification] name [pathname]

Overview

The getconf utility writes the current value of a configurable system limit or option variable to the standard output.

The name argument specifies the system variable to be queried. The pathname argument must be supplied for system variables associated with a pathname.

The options are as follows:

-L

List the system variables that can be used with the getconf utility that require a pathname argument.

-l

List the system variables that can be used with the getconf utility without a pathname argument.

-v specification

Indicate a specific version and compilation environment for which configuration variables shall be queried. OpenBSD does not change behavior for different compilation environments, so the argument to this option is only checked for validity.

Exit status

The getconf utility exits 0 on success, and >0 if an error occurs.

Releases

61 releases since OpenBSD 2.1; the text changed 7 times.

  1. 2.1–2.3
  2. 2.4–2.5
  3. 2.6
  4. 2.7–4.1
  5. 4.2–4.4
  6. 4.5–4.8
  7. 4.9–5.3
  8. 5.4–8.0

-L since OpenBSD 5.4; -l since OpenBSD 5.4; -v since OpenBSD 5.4.

Standards

The getconf utility is compliant with the IEEE Std 1003.1-2008 (“POSIX.1”) specification.

The flags [-Ll] are extensions to that specification.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.