当前位置: 首页 >服务端 > Linux命令——getconf

Linux命令——getconf

转自:灵活使用getconf命令来获取系统信息

简介

getconf本身是个ELF可执行文件,用于获取系统信息

用法

getconf -a可以获取全部系统信息

对于这个命令,记住几个常用的信息获取方法就行

getconf PAGE_SIZE 查看系统内存分页大小

  getconf LONG_BIT 看linux是32位还是64位最简单的方法

_CS_PATHValue for the PATH environment variable used to find commands.
ARG_MAXMaximum length, in bytes, of the arguments for one of the exec subroutines, including environment data.
BC_BASE_MAXMaximum value allowed for the obase variable with the bc command.
BC_DIM_MAXMaximum number of elements permitted in an array by the bc command.
BC_SCALE_MAXMaximum value allowed for the scale variable with the bc command.
BC_STRING_MAXMaximum length of a string constant accepted by the bc command.
CHARCLASS_NAME_MAXMaximum number of bytes in a character class name.
CHAR_BITNumber of bits in a type character.
CHAR_MAXMaximum value of a type character.
CHAR_MINMinimum value of a type character.
CHILD_MAXMaximum number of simultaneous processes for each real user ID.
CLK_TCKNumber of clock ticks per second retued by the time subroutine.
COLL_WEIGHTS_MAXMaximum number of weights that can be assigned to an entry in the LC_COLLATE locale stanza in a locale-definition file.
CS_PATHValue of the PATH environment variable used to find commands.
EXPR_NEST_MAXMaximum number of expressions that can be nested within parentheses by the expr command.
INT_MAXMaximum value of a type int.
INT_MINMinimum value of a type int.
LINE_MAXMaximum length, in bytes, of a command's input line (either standard input or another file) when the utility is described as processing text files. The length includes room for the trailing new-line character.
LONG_BITNumber of bits in a type long int.
LONG_MAXMaximum value of a type long int.
LONG_MINMinimum value of a type long int.
MB_LEN_MAXMaximum number of bytes in a character for any supported locale.
NGROUPS_MAXMaximum number of simultaneous supplementary group IDs for each process.
NL_ARGMAXMaximum value of digit in calls to the printf and scanf subroutines.
NL_LANGMAXMaximum number of bytes in a LANG name.
NL_MSGMAXMaximum message number.
NL_NMAXMaximum number of bytes in an N-to-1 collation mapping.
NL_SETMAXMaximum set number.
NL_TEXTMAXMaximum number of bytes in a message string.
NZERODefault process priority.
OPEN_MAXMaximum number of files that one process can have open at one time.
PATHSequence of colon-separated path prefixes used to find commands.
RE_DUP_MAXMaximum number of repeated occurrences of a regular expression permitted when using the interval-notation parameters, such as the m and n parameters with the ed command.
SCHAR_MAXMaximum value of a type signed char.
SCHAR_MINMinimum value of a type signed char.
SHRT_MAXMaximum value of a type short.
SHRT_MINMinimum value of a type short.
SSIZE_MAXMaximum value of an object of type ssize_t.
STREAM_MAXNumber of streams that one process can have open at one time.
TMP_MAXMinimum number of unique path names generated by the tmpnam subroutine. Maximum number of times an application can reliably call the tmpnam subroutine.
TZNAME_MAXMaximum number of bytes supported for the name of a time zone (not the length of the TZ environment variable).
UCHAR_MAXMaximum value of a type unsigned char.
UINT_MAXMaximum value of a type unsigned int.
ULONG_MAXMaximum value of a type unsigned long int.
USHRT_MAXMaximum value of a type unsigned short int.
WORD_BITNumber of bits in a word or type int

作者:克拉默与矩阵
来源链接:https://www.cnblogs.com/kelamoyujuzhen/p/10115985.html

版权声明:
1、JavaClub(https://www.javaclub.cn)以学习交流为目的,由作者投稿、网友推荐和小编整理收藏优秀的IT技术及相关内容,包括但不限于文字、图片、音频、视频、软件、程序等,其均来自互联网,本站不享有版权,版权归原作者所有。

2、本站提供的内容仅用于个人学习、研究或欣赏,以及其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关法律的规定,不得侵犯相关权利人及本网站的合法权利。
3、本网站内容原作者如不愿意在本网站刊登内容,请及时通知本站(javaclubcn@163.com),我们将第一时间核实后及时予以删除。





本文链接:https://www.javaclub.cn/server/112397.html

标签:Linux
分享给朋友:

“Linux命令——getconf” 的相关文章

MySQL安装之yum安装 2022年05月19日 19:54:29
go mod 相关的八个命令 2022年05月23日 20:17:45
python中循环的技巧 2022年05月23日 21:49:36
信息系统项目管理师 案例1 2022年05月24日 23:38:07
飞算soflu软件机器人 2022年05月25日 22:23:09
概率论快速学习02:概率公理 2022年05月26日 21:02:52
第一章导言的笔记与思考 2022年05月30日 22:43:38
深入浅出: 大小端模式 2022年06月03日 23:10:37