linux_用命令查询一个机器是32位还是64位

用命令查询一个机器是32位还是64位 收藏
1.getconf LONG_BIT or getconf WORD_BIT
例如:
[root@sy02 /]# getconf LONG_BIT
64

2.file command
例如:
[root@sy02 /]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped

作者: superior_2008   发布时间: 2010-09-20