查询系统相关的信息,比如页面大小,整数大小之类。
1.语法
[root@master conf]# getconf --help
Usage: getconf [-v SPEC] VAR
or: getconf [-v SPEC] PATH_VAR PATH
Get the configuration value for variable VAR, or for variable PATH_VAR
for path PATH. If SPEC is given, give values for compilation
environment SPEC.
2.示例
查看全部系统变量(会显示很多)
getconf -a
查看系统内存分页大小
getconf PAGE_SIZE
4096
查看linux系统支持的最大整数位数
getconf INT_MAX
2147483647
查看linux系统位数
getconf LONG_BIT
64
————Blueicex 2020/2/26 09:16 blueice1980@126.com