1. 从系统查看
1.1 uname -a 命令
[[email protected] ~]# uname -a
Linux qs-dmm-rh2 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 i686 i386 GNU/Linux
[[email protected] ~]# uname -a
Linux qs-xezf-db2 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
1.2 file /bin/ls 命令
[[email protected] ~]# file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
[[email protected] ~]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
1.3 getconf LONG_BIT 命令
[[email protected] ~]# getconf LONG_BIT
32
[[email protected] ~]# getconf LONG_BIT
64
1.4 arch命令
[[email protected] ~]# arch
i686
[[email protected] ~]# arch
x86_64