---
name: "getconf"
section: "1"
platform: "linux"
package: "libc-bin"
version: "2.41-12+deb13u4"
release: "Debian 13 (Trixie)"
platforms: ["linux", "freebsd", "openbsd", "macos"]
url: "https://new.carta.tech/getconf"
---

# getconf(1)

Query system configuration variables (sysconf)

## NAME

getconf - Query system configuration variables (sysconf)

## SYNOPSIS

**getconf** -a

**getconf** \[**-v specification**\] system\_var

**getconf** \[**-v specification**\] path\_var pathname

## DESCRIPTION

**-a**

```
        Displays all configuration variables for the current system
        and their values.
```

**-v**

```
        Indicate the specification and version for which to obtain
        configuration variables.
```

**system\_var**

```
        A system configuration variable, as defined by sysconf(3) or
        confstr(3).
```

**path\_var**

```
        A system configuration variable as defined by pathconf(3). This
        must be used with a pathname.
```

## AUTHOR

*getconf* was written by Roland McGrath for the GNU C Library

This man page was written by Ben Collins \<bcollins@debian.org\> for the Debian GNU/Linux system.

## SEE ALSO

[**sysconf**(3)](/sysconf/3.md), [**pathconf**(3)](/pathconf/3.md), [**confstr**(3)](/confstr/3.md)
