getconfdisplay POSIX configuration information |
Command |
getconf system_var
getconf path_var pathname
getconf [-a]
getconf command displays the value of a specified
configuration variable on the standard output. You can specify the configuration
variable using one of the forms listed in the
SYNOPSIS section. If you use the first form
(system_var), getconf simply displays the value of
the variable system_var. If you use the second form(path_var
pathname), getconf displays the value of the variable
path_var for the path name given by pathname.
getconf displays numeric values in decimal format and
non-numeric values as simple strings. If the value is undefined,
getconf writes the string undefined to the
standard output.
If no options or arguments are specified on the command line or the
-a option is specified, getconf displays
all current configuration variables, and their values, on standard output. In
this case, path variables are determined using a path name of dot
(.).
-adisplays all configuration variables for the current system and their
values, on standard output. Path variables are determined using a path
name of dot (.).
getconf to find the value of
the following POSIX.1-1990 standard configuration variables for the specified
pathname.
LINK_MAXmaximum number of links that this file can have.
MAX_CANONmaximum number of bytes in the terminal's canonical input queue (before line editing).
MAX_INPUTspace available in terminal input queue.
NAME_MAXlargest file name size.
PATH_MAXmaximum number of bytes in a path name.
PIPE_BUFlargest atomic write to a pipe.
_POSIX_CHOWN_RESTRICTEDrestrictions apply to file ownership changes.
_POSIX_NO_TRUNCif set, it is an error for any path name component to be longer than
NAME_MAX bytes.
_POSIX_VDISABLEprocesses are allowed to disable terminal special characters.
getconf to find the value of
the following POSIX.1-1990 standard configuration variables.
ARG_MAXmaximum length of arguments for running a program, in bytes, including environment data.
CHILD_MAXmaximum number of simultaneous processes allowed per real user.
CLK_TCKnumber of intervals per second in machine clock.
NGROUPS_MAXnumber of simultaneous group IDs per process.
OPEN_MAXmaximum number of open files at any time per process.
STREAM_MAXmaximum number of streams that one process can have open at one time.
TZNAME_MAXmaximum number of bytes supported for the name of a time zone (not of
the TZ variable).
_POSIX_ARG_MAXminimum conforming value for ARG_MAX.
_POSIX_CHILD_MAXminimum conforming value for CHILD_MAX.
_POSIX_JOB_CONTROLPOSIX job control supported.
_POSIX_LINK_MAXminimum conforming value for LINK_MAX.
_POSIX_MAX_CANONminimum conforming value for MAX_CANON.
_POSIX_MAX_INPUTminimum conforming value for MAX_INPUT.
_POSIX_NAME_MAXminimum conforming value for NAME_MAX.
_POSIX_NGROUPS_MAXminimum conforming value for NGROUPS_MAX.
_POSIX_OPEN_MAXminimum conforming value for OPEN_MAX.
_POSIX_PATH_MAXminimum conforming value for
PATH_MAX.
_POSIX_PIPE_BUFminimum conforming value for PIPE_BUF.
_POSIX_SAVED_IDSprocesses have saved set-user-ID and saved set-group-ID.
_POSIX_SSIZE_MAXvalue that can be stored in an object of type
ssize_t.
_POSIX_STREAM_MAXminimum conforming value for
STREAM_MAX.
_POSIX_TZNAME_MAXminimum conforming value for TZNAME_MAX.
_POSIX_VERSIONgives version of POSIX adhered to in this release.
getconf to find the value
of the following POSIX.2 standard configuration variables.
BC_BASE_MAXmaximum ibase and obase values for the
bc command.
BC_DIM_MAXmaximum number of elements permitted in a
bc array.
BC_SCALE_MAXmaximum scale size allowed in
bc.
BC_STRING_MAXmaximum number of characters in a string in
bc.
COLL_WEIGHTS_MAXmaximum number of weights assignable to an entry of the
LC_COLLATE order keyword.
EXPR_NEST_MAXmaximum number of expressions that you can nest inside parentheses in
an expression evaluated by
expr.
LINE_MAXmaximum number of characters that a utility can accept as an input line (either from the standard input or a text file) when the utility takes text files as input. This number includes the trailing newline.
PATHstandard PATH setting.
_CS_PATHstandard PATH setting.
RE_DUP_MAXmaximum number of repeated occurrences of a regular expression when
using the interval notation \{m,n\} (see
regexp).
POSIX2_C_BINDindicates whether the system supports the C Language Bindings Option.
POSIX2_C_DEVindicates whether the system supports the C Language Development Utilities Option.
POSIX2_FORT_DEVindicates whether the system supports the FORTRAN Development Utilities Option.
POSIX2_FORT_RUNindicates whether the system supports the FORTRAN Runtime Utilities Option.
POSIX2_LOCALEDEFindicates whether the system supports the creation of locales.
POSIX2_SW_DEVindicates whether the system supports the Software Development Utilities Option.
POSIX2_CHAR_TERMindicates whether the system supports at least one terminal type
capable of all operations necessary for the User Portability Utilities.
Only on if POSIX2_UPE is on.
POSIX2_UPEindicates whether the system supports the User Portability Utilities Option.
POSIX2_VERSIONgives the version of POSIX.2 adhered to in this release.
POSIX2_BC_BASE_MAXminimum conforming value for BC_BASE_MAX.
POSIX2_BC_DIM_MAXminimum conforming value for BC_DIM_MAX.
POSIX2_BC_SCALE_MAXminimum conforming value for BC_SCALE_MAX.
POSIX2_BC_STRING_MAXminimum conforming value for BC_STRING_MAX.
POSIX2_COLL_WEIGHTS_MAXminimum conforming value for EQUIV_CLASS_MAX.
POSIX2_EXPR_NEST_MAXminimum conforming value for EXPR_NEST_MAX.
POSIX2_LINE_MAXminimum conforming value for LINE_MAX.
POSIX2_RE_DUP_MAXminimum conforming value for RE_DUP_MAX.
getconf also recognizes the
following non-POSIX-compliant name.
_CS_BINDIRidentifies the directory which contains the MKS Toolkit executables.
_CS_ETCDIRidentifies the directory which contains various configuration files.
_CS_LIBDIRidentifies the directory which contains various support files for development utilities.
_CS_MANPATHidentifies the default directory which
man searches when looking for
reference pages.
_CS_NLSDIRidentifies the directory which contains the various files used in localization.
_CS_NULLDEVgives the name of the file used as the infinite data source/sink. Data written to this file is discarded. When you read from this file, it always returns an EOF.
_CS_SHELLidentifies the default shell (command interpreter).
_CS_SPOOLDIRidentifies the directory which serves as the system spool directory.
_CS_TMPDIRidentifies the default directory which is used to create temporary files.
_CS_TTYDEVgives the file name used to access the controlling terminal.
getconf to find the minimum
conforming value for PATH_MAX, which is contained in the variable
_POSIX_PATH_MAX. If you enter
getconf _POSIX_PATH_MAX
getconf displays
255
0The specified parameter_name was valid and
getconf displayed its value successfully.
>0An error occurred.
_CS_SHELL is an extension to the POSIX standard. Systems that
conform to POSIX.1-1988 may not support the symbols SSIZE_MAX,
_POSIX_SSIZE_MAX, STREAM_MAX,
_POSIX_STREAM_MAX, TZNAME_MAX, and
_POSIX_TZNAME_MAX.
regexp