getconf
顾名思义,就是查询linux系统中的一些配置信息等。
语法:
Usage:
getconf [ -v specification ] system_var
getconf [ -v specification ] path_var pathname
getconf -a
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.
常用举例
注意:以下命令无特殊说明,都适用于centos版本。
1、 查看glibc版本
[hancher@localhost ~]$ getconf GNU_LIBC_VERSION
glibc 2.17
1、 查看linux是多少位的
[hancher@localhost ~]$ getconf LONG_BIT
64
以后有用到再补充。