linux 操作系统的位数查看
A. getconf LONG_BIT 如果是32表示是32位
B. file /sbin/init信息全面一些
root@kali:~/software# file /sbin/init
/sbin/init: ELF -bit LSB executable, Intel , version (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6., BuildID[sha1]=0xb137367bf955d6ab9e17a1395b8768cbc1603e58, stripped
c. uname -a
root@kali:~/software# file /sbin/init
/sbin/init: ELF -bit LSB executable, Intel , version (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6., 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
查看aix操作系统是32位还是64位
# bootinfo -K
f. 查看cpu物理信息,过于全面了
root@kali:~/software# dmidecode | more
# dmidecode 2.11
SMBIOS 2.4 present.
structures occupying bytes.
Table at 0x7FDBC000. Handle 0x0008, DMI type , bytes
BIOS Information
Vendor: Hewlett-Packard
Version: 68CPP Ver. F.
Release Date: //
Address: 0xF0000
Runtime Size: kB
ROM Size: kB
Characteristics:
PCI is supported
PC Card (PCMCIA) is supported
BIOS is upgradeable
BIOS shadowing is allowed
Boot from CD is supported