老男人百科 > 百科 > 正文

查看linux是32位还是64位

2023-04-24 16:07:38 阅读( 8796)

1.#uname-a如果有x86_64就是64位的,没有就是32位的这是64位的#uname-aLinuxWORKS2.6.9-11.ELsmp#1SMPFriMay2018:25:30EDT2005x86_64x86_64x86_64GNU/Linux这是32位的#uname-aLinuxbacku

1.#uname -a如果有x86_64就是64位,如果没有就是32位。

This is 64-bit # uname -a Linux WORKS 2.6.9-11. Elsmp # 1 SMP FRI May 20, 2005 18:25:30 EST x86 _ 64x86 _ 64GNU/Linux This is a 32-bit # uname-Linux backup 2.6.9-67. Elsmp # 1 smpwed November 7th 13: 58: 04 EST 2007I686I686I386GNU/Linux Note: ixx is all 32-bit.

4.#file /bin/cat/bin/cat: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped

5.检查cpu多了多少位/proc/cpuinfo。

How to check whether the Linux operating system is 32-bit or 64-bit $ su-root # file/sbin/init/sbin: elf 32-bit LSB executable file, Intel 80386, version 1 (SYSV),

也就是32位linux。如果是64位,则显示64位。

专题页