查看linux是32位还是64位的方法:1、执行“getconf LONG_BIT”命令,输出32则是32位,输出64则是64位;2、执行“uname -m”命令,输出“x86_64”则为64位,输出“i686”或“i386”则为32位。

本教程操作环境:linux5.9.8系统、Dell G3电脑。
查看linux是32位还是64位
方法1:getconf LONG_BIT 查看
如下例子所示: 32位Linux系统显示32, 64位Linux系统显示64。最简单、快捷的方法。
[root@DB-Server ~]# getconf LONG_BIT32

[root@gettestlnx01 ~]# getconf LONG_BIT64

方法2:uname命令查看
如下例子所示,x86_64表示64位系统, i686 i386表示32位系统。i686 只是i386的一个子集,支持的cpu从Pentium 2 (686)开始,之前的型号不支持.
jQuery搜索框输入内容查找表格内是否匹配代码
jQuery搜索框输入文字查找表格内容匹配代码
47 查看详情
[root@DB-Server ~]# uname -aLinux DB-Server 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 i686 i386 GNU/Linux[root@DB-Server ~]# uname -mi686

[root@gettestlnx01 ~]# uname -aLinux gettestlnx01 3.8.13-16.2.1.el6uek.x86_64 #1 SMP Thu Nov 7 17:01:44 PST 2013 x86_64 x86_64 x86_64 GNU/Linux[root@gettestlnx01 ~]# uname -mx86_64

方法3: arch命令查看
[root@DB-Server ~]# archi686[root@gettestlnx01 ~]# archx86_64
方法4:file命令查看
[root@DB-Server ~]# 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[root@DB-Server ~]#[root@DB-Server ~]#[root@DB-Server ~]# 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

[root@gettestlnx01 ~]# file /sbin/init/sbin/init: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped[root@gettestlnx01 ~]#[root@gettestlnx01 ~]#[root@gettestlnx01 ~]# file /bin/ls/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

相关推荐:《Linux视频教程》
以上就是怎么查看linux是32位还是64位的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/266058.html
微信扫一扫
支付宝扫一扫