
getconf 命令
1 |
[[email protected] ~]$ getconf LONG_BIT |
内置系统环境变量 HOSTTYPE
1 |
[[email protected] ~]$ echo ${HOSTTYPE} |
x86_64 表示 64 位系统, i686 、i386 表示 32 位系统,i686 只是 i386 的一个子集,支持的 CPU 从 Pentium 2 (686)开始,之前的型号不支持。
1 |
[[email protected] ~]$ uname -m |
arch 命令
1 |
[[email protected] ~]$ arch |
file 命令
1 |
[[email protected] ~]$ file /bin/ls |
查看CPU信息可确定是否支持64bit计算,lm : long mode,如果能搜索到则说明支持,否则不支持
1 |
[[email protected] ~]$ egrep '^flags.*<lm>' /proc/cpuinfo |




近期评论