在 CentOS 系统中,你可以使用 getconf 命令来查询 CPU 相关的信息。以下是一些常用的 getconf 命令示例:
getconf LONG_BIT
如果输出是 64,那么你的 CPU 是 64 位的。
getconf _NPROCESSORS_CONF
getconf _NPROCESSORS_ONLN
getconf CPU_MHZ
getconf CPU_MIN_MHZ
getconf CPU_MAX_MHZ
getconf CPU_MAX_GHZ
请注意,某些命令可能不适用于所有系统。如果你不确定某个命令是否可用,请尝试运行 getconf --help 查看可用选项。