查看系统32位还是64位的3种方法

来源:互联网 发布:aa录音软件下载 编辑:程序博客网 时间:2024/05/17 04:49

1.   [root@bainuo ~]# file /sbin/init    //redhat
/sbin/init: ELF 32-bit LSB executable, Intel80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses sharedlibs), for GNU/Linux 2.6.9, stripped

[root@bainuo ~]#即是32位的 linux, 如是64位的, 显示的是 64-bit

2.file /bin/ls           //centos

3.getconf  LONG_BIT   //centos

0 0