View system hardware information in Linux (instance details)

Source: Internet
Author: User
Linux viewing system hardware information (instance details) [html] blue @ blue-pc :~ $ LscpuArchitecture: i686 # cpu architecture CPUop-mode (s): 32-bit, 64-bitByteOrder: LittleEndian # Small... linux viewing system hardware information (instance details) [html] blue @ blue-pc :~ $ Lscpu Architecture: i686 # cpu Architecture CPU op-mode (s): 32-bit, 64-bit Byte Order: Little Endian # Small tail sequence CPU (s ): 4 # A total of 4 cores On-line CPU (s) list: 0-3 Thread (s) per core: 1 # each cpu core can only support one Thread, that is, hyper-threading Core (s) per socket: 4 # each cpu has 4 cores Socket (s): 1 # A total of 1 cpu Vendor ID: genuineIntel # cpu manufacturer intel CPU family: 6 Model: 42 Stepping: 7 CPU MHz: 1600.000 BogoMIPS: 5986.12 Virtualization: VT-x # Support for cpu Virtualization technology L1d cache: 32 K L 1i cache: 32 K L2 cache: 256 K L3 cache: 6144 K View/proc/cpuinfo, you can know the information about each cpu, such as the model and clock speed of each CPU. [Html] # cat/proc/cpuinfo processor: 0 vendor_id: GenuineIntel cpu family: 6 model: 42 model name: Intel (R) Core (TM) i5-2320 CPU @ 3.00 GHz ..... the first cpu information is output above, and three other cpu information is omitted. Memory overview view memory status [html] free-m total used free shared buffers cached Mem: 3926 3651 274 0 12 404-/+ buffers/cache: 3235 691 Swap: 9536 31 9505 the unit here is MB, and the total memory is 3926 MB. [Html] # cat/proc/meminfo MemTotal: 4020868 kB MemFree: 230884 kB Buffers: 7600 kB Cached: 454772 kB SwapCached: 836 kB ..... view memory hardware information [html] dmidecode-t memory # dmidecode 2.11 SMBIOS 2.7 present. handle 0x0008, DMI type 16, 23 bytes Physical Memory Array Location: System Board Or Motherboard .... maximum Capacity: 32 GB .... handle 0x000A, DMI type 17, 34 bytes .... memory Device Array Handle: 0 X0008 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 4096 MB ..... my Motherboard has four slots, only one slot is used, and a 40, 96 MB memory is inserted on it. Disk View disk and partition distribution [html] # lsblk name maj: min rm size ro type mountpoint sda 0 465.8G 0 disk restart-sda1 80 1G 0 part/boot restart-sda2 0 9.3G 0 part [SWAP] restart-sda3 0 74.5G 0 part/audio-sda4 0 1 K 0 part audio-sda5 5 0 111.8G 0 part/home audio-sda6 0 269.2G 0 part display very intuitive [html] # fdisk-l Disk/dev/sda: 500.1 GB, 500107862016 bytes heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1*512 = 512 bytes Sector size (logical/physical ): 512 bytes/4096 bytes I/O size (minimum/optimal): 4096 bytes/4096 bytes Disk identifier: 0x00023728 Device Boot Start End Blocks Id System/dev/sda1 * 2048 2148351 1073152 83 Linux/dev/sda2 2148352 21680127 9765888 82 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 Nic view NIC hardware information [html] # lspci | grep -I 'eth. 0 Ethernet controller: Realtek semiconduco ., ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06) view all network interfaces of the system [html] # ifconfig-a eth0 Link encap: Ethernet hardware address b8: 97: 5a: 17: b3: 8f ..... lo Link encap: Local loopback ..... or [html] ip link show 1: lo: Mtu 16436 qdisc noqueue state DOWN link/loopback 00: 00: 00: 00: 00: 00 brd 00: 00: 00: 00: 00 2: eth0: Mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether b8: 97: 5a: 17: b3: 8f brd ff: ff if you want to view detailed information about a network interface, such as detailed parameters and metrics of eth0 [html] # ethtool eth0 Settings for eth0: Supported ports: [tp mii] Supported link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full 1000 baseT/Half 1000 baseT/Full # support gigabit Half duplex, Full duplex mode Supported pause frame use: no Supports auto-negotiation: Yes # adaptive mode is supported. generally, Advertis is supported. Ed link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full 1000 baseT/Half 1000 baseT/Full Advertised pause frame use: incluric Receive-only Advertised auto-negotiation: Yes # default adaptive mode Link partner advertised link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full ..... speed: 100 Mb/s # The current Speed of the network adapter is 100 Mb, and the network adapter uses the adaptive mode. Therefore, it is assumed that the route is 100 Mb. as a result, the network adapter must support Mbit/s Duplex: full # Full duplex ..... link detected: Yes # indicates that there is a network connection, and other information about the access to the route, that is, all hardware slots on the motherboard. [Html] lspci: 00: 00. 0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) # motherboard chip. 0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) # video card. 0 USB controller: Intel Corporation Panther Point USB xHCI Host Controller (rev 04) # usb controller. 0 Communication controller: Intel Communications Ion Panther Point MEI Controller #1 (rev 04) 00: 1a. 0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04) 00: 1b. 0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04) # Sound card 00: 1c. 0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4) # pci slot 00: 1c. 2 PCI bridge: Intel Corporation Panther Point PCI Express R Oot Port 3 (rev c4) 00: 1c. 3 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 4 (rev c4) 00: 1d. 0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04) 00: 1f. 0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04) 00: 1f. 2 IDE interface: Intel Corporation Panther Point 4 port SATA Controller [IDE mode] (rev 04) # Hard disk interface 00: 1f. 3 SMBus: Int El Corporation Panther Point SMBus Controller (rev 04) 00: 1f. 5 IDE interface: Intel Corporation Panther Point 2 port SATA Controller [IDE mode] (rev 04) # Hard disk interface. 0 Ethernet controller: Realtek semiconduco ., ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06) # network adapter. 0 PCI bridge: Integrated Technology Express, Inc. device 8893 (rev 41) for more details: lspci-v or lspci-vv Device tree: lscpi-t viewing bios information [html] # 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 way. This information includes hardware and BIOS. you can get the current configuration or the maximum configuration supported by the system, such as the maximum memory size supported. If you want to view all the useful information, [html] dmidecode-q contains a lot of hardware information.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.