如何檢視Linux是32位還是64位,以及發行版本

2021-06-08 20:40:44 字數 854 閱讀 2393

[root@localhost]#: 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)

如果看到 32-bit 就說明是32位

或者[root@localhost ~]# 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), stripped

如果看到 32-bit 就說明是32位

[root@localhost ~]# getconf -a |grep long*

long_bit                           32

ulong_max                          4294967295

如果看到 32就說明是32位

[root@localhost]#:lsb_release -a

lsb version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch

distributor id: centos

description:    centos release 5.5 (final)

release:        5.5

codename:       final

如何檢視Linux是32位還是64位

檢視linux機器是32位還是64位的方法 sbin init elf64 bitlsb executable,x86 64,version 1 sysv dynamically linked uses shared libs for gnu linux 2.6.18,stripped 如果顯示 6...

如何檢視Linux是32位還是64位

檢視linux機器是32位還是64位的方法 sbin init elf64 bitlsb executable,x86 64,version 1 sysv dynamically linked uses shared libs for gnu linux 2.6.18,stripped 如果顯示 6...

如何檢視Linux是32位還是64位

檢視linux機器是32位還是64位的方法 1 file sbin init 或者 file bin ls 1 root bogon file sbin init 2 sbin init elf 32 bit lsb shared object,intel 80386,version 1 sysv ...