getconf:Unix/Linux 中的命令行工具,用于查询系统配置变量与标准相关参数(常见于 POSIX 环境),例如页面大小、最大参数长度、路径相关限制等。
/ˈɡɛt.kɒnf/
I used getconf to check the system page size.
我用 getconf 查看系统的页面大小。
To make the script portable across POSIX systems, we query limits like ARG_MAX with getconf instead of hard-coding values.
为了让脚本在不同 POSIX 系统上更具可移植性,我们用 getconf 查询如 ARG_MAX 这类限制,而不是把数值写死。
由 get(获取)+ conf(configuration 的缩写,意为“配置”)构成,字面意思是“获取配置(参数)”。在类 Unix 系统里,它用于读取与系统标准/实现相关的配置值。
ARG_MAX 等参数的思路。