Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getconf(1) [netbsd man page]

GETCONF(1)						    BSD General Commands Manual 						GETCONF(1)

NAME
getconf -- get configuration values SYNOPSIS
getconf system_var getconf -a getconf path_var pathname getconf -a pathname DESCRIPTION
The getconf utility writes the current value of a configurable system limit or option variable to the standard output. The system_var argument specifies the system variable to be queried. The names of the system variables are from sysconf(3) with the leading ``_SC_'' removed. The path_var argument specifies the pathname variable to be queried for the specified pathname argument. The names of the pathname variables are from pathconf(2) with the leading ``_PC_'' removed. When invoked with the option -a, getconf writes a list of all applicable variables and their values to the standard output, in the format ``name = value''. EXIT STATUS
The getconf utility exits 0 on success, and >0 if an error occurs. SEE ALSO
pathconf(2), confstr(3), limits(3), sysconf(3) STANDARDS
The getconf utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). BSD
August 9, 2011 BSD

Check Out this Related Man Page

GETCONF(1)                                                       Debian GNU/Linux                                                       GETCONF(1)

NAME
getconf - Query system configuration variables 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), pathconf(3), confstr(3) 3rd Berkeley Distribution squeeze GETCONF(1)
Man Page

4 More Discussions You Might Find Interesting

1. Solaris

invalid getconf output and Perl compile

I was compiling perl on a Solaris 10 server. The compile failed because the output of getconf is wrong (it indicates xarch is generic64 not v9. This is a known bug but I cannot find a fix. I wrote a script as suggested that changes it but when you run getconf again it goes back to generic64. ... (2 Replies)
Discussion started by: csross
2 Replies

2. AIX

Hardware_bitmode

Hi guys, I'm new to AIX and I tried to run this command in my AIX box running OS Level 5100-005: getconf HARDWARE_BITMODE The result of the command is shown as undefined. What does undefined mean? And how can I go about to make it show me the proper result? Thanks, Michael. (4 Replies)
Discussion started by: michael.chow
4 Replies

3. Shell Programming and Scripting

Doing math using user defined input and system environment variables

Hi, I need some help to setup some environmental variables. for example...Get A -> userdefined/user input B -> a number. c -> system variable...for example $GETCONF PAGE_SIZE E = do some math using bc display a message "The value is E" setup the system/kernel paramter sysctl -p... (3 Replies)
Discussion started by: saravanapandi
3 Replies

4. Solaris

ARG_MAX Limit

Hi, I can able to view the limit of ARG_MAX ENV variable using the command: getconf ARG_MAX can we modify the value of ARG_MAX somewhere or is that common value depending upon the version of kernel ? (1 Reply)
Discussion started by: penqueen
1 Replies