(1)
终端输入:
file /sbin/init
如 显示:
/sbin/init: 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
即是32位的 linux, 如是64位的, 显示的是 64-bit
(2)
终端输入:
uname -a
如 显示:
Linux redhat-tj 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux
则是32位
(3)
终端输入:
getconf WORD_BIT
如 显示:
32
则是32位的linux
阅读(4001) | 评论(0) | 转发(0) |