Original: http://www.cnblogs.com/ggjucheng/archive/2013/01/14/2859613.html
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 Span style= "COLOR: #000000" > #每个cpu核, only one thread is supported, that is, Hyper-threading core (s) per socket: 4 #每个cpu with 4 cores socket (s): 1 # A total of 11 Cpuvendor Id:genuineintel #cpu产商 intelcpu family: 6 Model: 42stepping: 7cpu MHz: 1600.000bogomips: 5986.12virtualization:vt-x # Support for CPU virtualization technology l1d cache:32kl1i cache:32kl2 cache:256kl3 cache:6144k span>
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 model Name:intel (R) Core (TM) i5-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 6919505
The unit here is MB, and the total memory is 3926MB.
View Memory Detail Usage
cat/proc/meminfo memtotal: 4020868 kbmemfree: 2308847600454772836 KB .....
View Memory Hardware Information
Dmidecode-T memory# Dmidecode2.11SMBIOS2.7 present. Handle 0x0008, DMI type 16, 23 bytesphysical Memory Array location:system Board Or motherboard .... Maximum Capacity: 32 GB .... Handle 0x000a, DMI type 17, 34 bytes .... Memory Device Array Handle: 0x0008 Error information Handle : Provided total Width: 64 bits Data Width: 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 MOUNTPOINTSDA8:00465.8G0Disk├─sda18:10 1G0 part/Boot├─sda28:209.3G0 part [Swap]├─sda3 8:< Span style= "COLOR: #800080" >3 0 74.5g 0 part/├─sda4 8:4 0 1K 0 Part├─sda5 8:5 0 111.8g 0 part/home└─sda6 Span style= "COLOR: #800080" >8:6 0 269.2g 0 part
Display is intuitive
If you want to see hard disk and partition details
# fdisk-LDISK/DEV/SDA:500.1 GB,500107862016bytes255 heads,Sectors/track,60801 Cylinders, Total976773168Sectorsunits = sectors of1 *512 =512Bytessector size (logical/physical):Bytes/4096BYTESI/O size (Minimum/optimal):4096 Bytes/4096Bytesdisk identifier:0x00023728Device Boot Start End Blocks Id system/dev/sda1 *20482148351107315283Linux/dev/sda2214835221680127976588882 Linux swap/ Solaris/dev/sda3 21680128 177930239 78125056 83 linux/dev/sda4 177932286 976771071 399419393 5 Extended/dev/sda5 177932288 412305407 117186560 83 Linux/dev/sda6 412307456 976771071 282231808 83 Linux
Network card
Viewing NIC hardware information
'eth':
View all network interfaces of the system
Ifconfig-aeth0 link encap: Ethernet Hardware address B8:97:5a:£º b3:8f ... lo Link encap: Local loopback ... ..
or a
IP link Show1:lo: <LOOPBACK> MTU16436 qdisc noqueue state, down link/loopback :xx : xx: xx: xx: BRD XX: XX: (XX):2:eth0:<BROADCAST,MULTICAST,UP,LOWER_UP> MTU Qdisc pfifo_fast State Up Qlen link/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 Eth0settingsForeth0: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 a network card from the support of gigabit, to support the Hundred trillion Duplex:full # Full duplex ..... Link Detected:yes #表示有网线连接, and routing is on
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 (rev09) #主板芯片00:02.0 VGA compatible Controller:intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev09) #显卡00:14.0 USB Controller:intel Corporation Panther Point USB XHCI Host Controller (rev04) #usb控制器00:16.0 Communication Controller:intel Corporation Panther Point MEI Controller #1 (Rev04)00:1a.0 USB Controller:intel Corporation Panther Point USB Enhanced Host Controller #2 (Rev04)00:1b.0 Audio Device:intel Corporation Panther Point High Definition Audio Controller (rev04) #声卡00:1c.0 PCI Bridge:intel Corporation Panther point PCI Express Root Port1(Rev C4) #pci slots00:1c.2 PCI Bridge:intel Corporation Panther point PCI Express Root Port3(Rev C4)00:1c.3 PCI Bridge:intel Corporation Panther point PCI Express Root Port4(Rev C4)00:1d.0 USB Controller:intel Corporation Panther Point USB Enhanced Host Controller #1 (Rev04)00:1f.0 ISA Bridge:intel Corporation Panther Point LPC Controller (rev04)00:1f.2 IDE interface:intel Corporation Panther Point4 Port SATA Controller [IDE mode] (rev04) #硬盘接口00:1f. 3 smbus:intel Corporation Panther Point SMBus Controller (rev 04) 00:1f.5 IDE interface:intel Corporation Panther point 2 port SATA Controller [IDE Mode] (rev 04) #硬盘接口 02:< Span style= "COLOR: #800080" >00.0 Ethernet Controller:realtek Semiconductor Co., Ltd. rtl8111/8168b PCI Express Gigabit Et Hernet Controller (Rev 0603:00.0 PCI bridge:integrated 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. 4.6.5 04/25/-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 viewing system hardware information [go]