linux系统怎么查看自己电脑的cpu位数

linux系统怎么查看自己电脑的cpu位数


2024年5月16日发(作者:硬盘不能读取了怎么办)

linux系统怎么查看自己电脑的cpu位数

linux系统怎么查看自己电脑的cpu位数?不知道的话跟着店铺一起来学习linux系统

怎么查看自己电脑的cpu位数。

linux系统怎么查看自己电脑的cpu位数的方法

1.查看Linux的操作系统和硬件cpu位数

linux 操作系统的位数查看

getconf LONG_BIT 如果是32表示是32位

eg:

[root@db ~]# getconf LONG_BIT

32

[root@db ~]# getconf WORD_BIT

32

或者通过cat /proc/cpuinfo也可以查看

再或者

[root@svr-db-test ~]# file /sbin/init

/sbin/init: 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

查看cpu硬件架构

在Linux中使用命令arch可以初步查看出当前系统所识别出来的机器CPU类型,

如"i386", "i486","i586", "alpha", "sparc", "arm", "m68k",

"mips", "ppc","ia64","x86_64"等;ia64和x86_64就说明这台机器是64位的;

eg:

[root@db ~]# arch

i686

或者

[root@svr-db-test ~]# uname -m

x86_64


发布者:admin,转转请注明出处:http://www.yc00.com/xitong/1715846430a2680761.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信