app教程网 学习教程 查看linux是32位还是64位

查看linux是32位还是64位

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

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位。

本文来自网络,不代表本站立场,转载请注明出处:https: