Linux View system hardware information, not as intuitive as windows, here I listed the view system information of the practical commands, and do a classification, examples of interpretation.
CPU
The LSCPU command, which looks at the CPU statistics.
[Email protected]:~$ lscpuarchitecture: i686 #cpu架构CPU Op-mode (s): 32-bit, 64-bitbyte Order: Little Endian #小尾序CPU (s): 4 #总共有4核On-line CPU (s) List: 0-3thread (s) per core: 1 #每个cpu核, Only one thread is supported, that is, Hyper-threading core (s) per socket: 4 #每个cpu, with 4 core sockets (s): 1 #总共有1一个cpuVendor ID: Genuineintel #cpu产商 intelcpu family: 6Model: 42Stepping: 7CPU MHz: 1600.000BogoMIPS: 5986.12Virtualization: Vt-x #支持cpu虚拟化技术L1d cache: 32kl1i cache: 32kl2 cache: 256kl3 cache: 6144K
View/proc/cpuinfo, you can know each CPU information, such as the model of each CPU, the frequency and so on.
#cat/proc/cpuinfoprocessor : 0vendor_id : Genuineintelcpu family : 6model : 42model name : Intel ( R) Core (TM) i5-2320 CPU @ 3.00GHz .....
The above output is the first CPU part of the information, there are 3 of CPU information omitted.
Memory
Overview of Memory
Free-m Total used free shared buffers cachedmem: 3926 3651 274 0 404-/+ buffers/cache: 3235 691Swap: 9536 9505
The unit here is MB, and the total memory is 3926MB.
View Memory Detail Usage
# cat/proc/meminfo Memtotal: 4020868 kbmemfree: 230884 kbbuffers: 7600 kbcached : 454772 kbswapcached : 836 KB .....
View Memory Hardware Information
Dmidecode-t memory# Dmidecode 2.11SMBIOS 2.7 present. Handle 0x0008, DMI type, bytesphysical Memory Array location:system Board Or motherboard .... Maximum capacity:32 GB .... Handle 0x000A, DMI type, bytes .... Memory Device Array handle:0x0008 Error information handle:not provided total width:64 bits Data Wi dth:64 bits size:4096 MB .....
My motherboard has 4 slots, with only one slot, with a 4096MB of memory plugged in.
Disk
View hard disk and partition distribution
# lsblkname maj:min RM SIZE RO TYPE mountpointsda 8:0 0 465.8G 0 disk├─sda1 8:1 0 1g< C8/>0 part/boot├─sda2 8:2 0 9.3G 0 Part [Swap]├─sda3 8:3 0 74.5G 0 part/ ├─SDA4 8:4 0 1K 0 part├─sda5 8:5 0 111.8G 0 part/home└─sda6 8:6 0 269.2G
Display is intuitive
If you want to see hard disk and partition details
# fdisk-ldisk/dev/sda:500.1 GB, 500107862016 bytes255 heads, sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * bytessector size (logical/physical): bytes/4096 bytesi/o size (minimum/optimal): 40 bytes/4096 bytesdisk identifier:0x00023728 Device Boot Start End Blocks Id system/dev/ SDA1 * 2048 2148351 1073152 , linux/dev/sda2 2148352 21680127 9765888 swap/solaris/dev/sda3 21680128 177930239 78125056 DEV/SDA4 177932286 976771071 399419393 5 extended/dev/sda5 177932288 412305407 117186560 linux/dev/sda6 412307456 976771071 282231808 83 Linux
Network card
Viewing NIC hardware information
# Lspci | Grep-i ' ETH ' 02:00.0 Ethernet Controller:realtek Semiconductor Co., Ltd. rtl8111/8168b PCI Express Gigabit Ethernet contr Oller (Rev 06)
View all network interfaces of the system
# ifconfig-aeth0 link encap: Ethernet Hardware address b8:97:5a:17:b3:8f ... lo Link encap: Local loopback .....
or a
IP link show1:lo: <LOOPBACK> MTU 16436 qdisc noqueue State down Link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00: 002:eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU Qdisc pfifo_fast State up Qlen 1000link/ether b8:97:5a:17:b3: 8f BRD FF:FF:FF:FF:FF:FF
If you want to view the details of a network interface, such as detailed parameters and metrics for eth0
# Ethtool Eth0settings for eth0: supported ports: [TP MII] supported link modes: 10baset/half 10baset/full
100baset/half 100baset/full 1000baset/half 1000baset/full #支持千兆半双工, full duplex mode supported pause frame Use:no Supports Auto-negotiation:yes #支持自适应模式, generally support Advertised link modes: 10baset/half 10baset/full 100baset/half 100baset/full 1000baset/half 1000baset/ Full advertised pause frame use:symmetric receive-only advertised Auto-negotiation:yes #默认使用自适应模式 Link Partner advertised link modes: 10baset/half 10baset/full 100baset/half 100baset/full ..... SPEED:100MB/S #现在网卡的速度是100Mb, the network adapter uses adaptive mode, so it is assumed that the route is 100Mb, resulting in the network card from support gigabit, to support the duplex:full #全双工 ... Link detected:yes #表示有网线连接, and routing is pass-through
other
View PCI information, which is the motherboard's hardware slot information.
lspci00:00.0 Host Bridge:intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev.) #主板芯片00:02.0 VGA Compatible Controller:intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev.) #显卡 00:14.0 USB Controller:intel Corporation Panther Point USB XHCI Host Controller (rev.) #usb控制器00:16.0 communication con Troller:intel Corporation Panther Point MEI Controller #1 (rev.) 00:1a.0 USB Controller:intel Corporation Panther Point USB Enhanced Host Controller #2 (rev.) 00:1b.0 audio Device:intel Corporation Panther Point High Definition Audio contr Oller (rev.) #声卡00:1c.0 PCI bridge:intel Corporation Panther Point PCI Express Root Port 1 (Rev C4) #pci socket 00:1C.2 PCI Bridge:intel Corporation Panther Point PCI Express Root Port 3 (rev C4) 00:1c.3 PCI bridge:intel Corporation Panther poin T PCI Express Root Port 4 (rev. C4) 00:1d.0 usb controller:intel Corporation Panther Point USB enhanced Host Controller #1 (rev.) 00:1f.0 ISA BridGe:intel Corporation Panther Point LPC Controller (rev.) 00:1f.2 IDE Interface:intel Corporation Panther point 4 Port S ATA Controller [IDE mode] (rev.) #硬盘接口00:1f.3 smbus:intel Corporation Panther point SMBus Controller (rev.) 00:1f.5 ID E Interface:intel Corporation Panther point 2 port SATA controller [IDE mode] (rev) #硬盘接口02:00.0 Ethernet Controller: Realtek Semiconductor Co., Ltd. rtl8111/8168b PCI Express Gigabit Ethernet Controller (rev.) #网卡03:00.0 PCI Bridge:inte Grated Technology Express, Inc. Device 8893 (Rev. 41)
If you want more detailed information: Lspci-v or LSPCI-VV
If you want to see the device tree: lscpi-t
View BIOS Information
# DMIDECODE-T BIOS ... BIOS information vendor:american megatrends Inc. version:4.6.5 Release date:04/25/2012 .... BIOS revision:4.6 ...
Dmidecode dumps the DMI (Desktop Management Interface) information of the machine in a readable manner. This information includes both the hardware and the BIOS, as well as the current configuration and the maximum configuration supported by the system, such as the maximum amount of memory supported.
If you want to see all the useful information
Dmidecode-q
It contains a lot of hardware information.
Linux View System hardware information (example)