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
例如:
[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