getconf 命令详解


获取变量 VAR 或路径 PATH 变量 PATH_VAR 的配置值。

另请参阅: https://www.cnblogs.com/Alight/p/4617617.html

Basic Usage     Detailed Usage

root:# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
 
root:# getconf LONG_BIT
64 (CPU 运行在 64bit 模式下)
 
root:# getconf LONG_BIT
32 (CPU 运行在 32bit 模式下)
 
root:#
			

基本语法

getconf [-v SPEC] VAR
 
getconf [-v SPEC] PATH_VAR PATH
			

获取变量 VAR 或路径 PATH 变量 PATH_VAR 的配置值。

Basic Usage

Function 命令 文字解释 示例 示例解释
帮助 getconf --help 展示帮助信息

 

Copyright Notice: This article is an exclusive original manuscript, copyright belongs to Happy Digits Software , shall not be reproduced without permission.