OpenBSD manual page server

Manual Page Search Parameters

GETCONF(1) General Commands Manual GETCONF(1)

getconfget configuration values

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

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:

List the system variables that can be used with the getconf utility that require a pathname argument.
List the system variables that can be used with the getconf utility without a pathname argument.
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.

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

pathconf(2), confstr(3), sysconf(3)

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

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

March 2, 2013 OpenBSD-current