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 core Thread Core * Core Socketon-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 # For each CPU, there are 4 cores sockets (s): 1 #总共有1一个cpuVendor ID: genuineintel #cpu产商 intelcpu family: 6Model: 42Stepping: 7CPU MHz: 1600.000BogoMIPS: 5986.12Virtualization: vt-x # Support for CPU Virtualization Technology 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 LSBLK or df-h
# 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
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 ...
"Turn" If you have any inconvenience
Linux View hardware information for the system "go"