linux 操作系统的位数查看
A. getconf LONG_BIT 如果是32表示是32位
B. file /sbin/init信息全面一些
root@kali:~/software# file /sbin/init /sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0xb137367bf955d6ab9e17a1395b8768cbc1603e58, stripped
c. uname -a
root@kali:~/software# file /sbin/init /sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0xb137367bf955d6ab97a1395b1768cbc1603e58, stripped
d. 还有这两条指令,结果不一样》》》
root@kali:~/software# echo $HOSTTYPE i486 root@kali:~/software# uname -m i686 root@kali:~/software#
e. AIX查看硬件cpu位数和os位数
显示机器硬件是32位还是64位
# bootinfo -y 64
查看aix操作系统是32位还是64位
# bootinfo -K 64
f. 查看cpu物理信息,过于全面了
root@kali:~/software# dmidecode | more # dmidecode 2.11 SMBIOS 2.4 present. 17 structures occupying 909 bytes. Table at 0x7FDBC000. Handle 0x0008, DMI type 0, 24 bytes BIOS Information Vendor: Hewlett-Packard Version: 68CPP Ver. F.08 Release Date: 05/27/2010 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 2048 kB Characteristics: PCI is supported PC Card (PCMCIA) is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported