UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: functionsChapter 4
The Bourne Shell and Korn Shell
Next: Reference: getopts
 

getconf

getconf [name [path]]

ksh93 only. Retrieve the values for parameters that can vary across systems. name is the parameter to retrieve; path is a filename to test for parameters that can vary on different filesystem types.

The parameters are defined by the POSIX 1003.1 and 1003.2 standards. See the entry for getconf in Chapter 2.

Example

Print the maximum value that can be held in a C int.

$ getconf INT_MAX
2147483647


Previous: Reference: functionsUNIX in a Nutshell: System V EditionNext: Reference: getopts
Reference: functionsBook IndexReference: getopts

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System