5G下載 - 5G下載,唯一官網:www.5gxz.com!

當前位置:首頁 > 系統教程 > Linux教程 > 詳細頁面

linux系統查看硬件信息的方法

時間:2017-08-17來源:5G下載作者:yunchun

  用過Linux系統的人都知道這么一個情況,那就是Linux大部分操作是通過命令實現的,并不像Windows那么直觀。linux查看硬件信息也是需要通過命令查詢才可以看得到硬件的信息,那linux系統如何查看硬件信息呢?今天,小編就和大家說一下linux系統查看硬件信息的方法。NIf5G下載(www.5gxz.com)

linux系統查看硬件信息的方法

  步驟如下:NIf5G下載(www.5gxz.com)

  1、CPUNIf5G下載(www.5gxz.com)

  lscpu命令,查看的是cpu的統計信息。NIf5G下載(www.5gxz.com)

  [email protected]:~$ lscpuNIf5G下載(www.5gxz.com)

  Architecture: i686 #cpu架構NIf5G下載(www.5gxz.com)

  CPU op-mode(s): 32-bit, 64-bitNIf5G下載(www.5gxz.com)

  Byte Order: Little Endian #小尾序NIf5G下載(www.5gxz.com)

  CPU(s): 4 #總共有4核NIf5G下載(www.5gxz.com)

  On-line CPU(s) list: 0-3NIf5G下載(www.5gxz.com)

  Thread(s) per core: 1 #每個cpu核,只能支持一個線程,即不支持超線程NIf5G下載(www.5gxz.com)

  Core(s) per socket: 4 #每個cpu,有4個核NIf5G下載(www.5gxz.com)

  Socket(s): 1 #總共有1一個cpuNIf5G下載(www.5gxz.com)

  Vendor ID: GenuineIntel #cpu產商 intelNIf5G下載(www.5gxz.com)

  CPU family: 6NIf5G下載(www.5gxz.com)

  Model: 42NIf5G下載(www.5gxz.com)

  Stepping: 7NIf5G下載(www.5gxz.com)

  CPU MHz: 1600.000NIf5G下載(www.5gxz.com)

  BogoMIPS: 5986.12NIf5G下載(www.5gxz.com)

  Virtualization: VT-x #支持cpu虛擬化技術NIf5G下載(www.5gxz.com)

  L1d cache: 32KNIf5G下載(www.5gxz.com)

  L1i cache: 32KNIf5G下載(www.5gxz.com)

  L2 cache: 256KNIf5G下載(www.5gxz.com)

  L3 cache: 6144KNIf5G下載(www.5gxz.com)

  查看/proc/cpuinfo,可以知道每個cpu信息,如每個CPU的型號,主頻等。NIf5G下載(www.5gxz.com)

  #cat /proc/cpuinfoNIf5G下載(www.5gxz.com)

  processor : 0NIf5G下載(www.5gxz.com)

  vendor_id : GenuineIntelNIf5G下載(www.5gxz.com)

  cpu family : 6NIf5G下載(www.5gxz.com)

  model : 42NIf5G下載(www.5gxz.com)

  model name : Intel(R) Core(TM) i5-2320 CPU @ 3.00GHzNIf5G下載(www.5gxz.com)

  。。。。。NIf5G下載(www.5gxz.com)

  上面輸出的是第一個cpu部分信息,還有3個cpu信息省略了。NIf5G下載(www.5gxz.com)

  2、內存NIf5G下載(www.5gxz.com)

  概要查看內存情況NIf5G下載(www.5gxz.com)

  free -mNIf5G下載(www.5gxz.com)

  total used free shared buffers cachedNIf5G下載(www.5gxz.com)

  Mem: 3926 3651 274 0 12 404NIf5G下載(www.5gxz.com)

  -/+ buffers/cache: 3235 691NIf5G下載(www.5gxz.com)

  Swap: 9536 31 9505NIf5G下載(www.5gxz.com)

  這里的單位是MB,總共的內存是3926MB。NIf5G下載(www.5gxz.com)

  查看內存詳細使用NIf5G下載(www.5gxz.com)

  # cat /proc/meminfoNIf5G下載(www.5gxz.com)

  MemTotal: 4020868 kBNIf5G下載(www.5gxz.com)

  MemFree: 230884 kBNIf5G下載(www.5gxz.com)

  Buffers: 7600 kBNIf5G下載(www.5gxz.com)

  Cached: 454772 kBNIf5G下載(www.5gxz.com)

  SwapCached: 836 kBNIf5G下載(www.5gxz.com)

  。。。。。NIf5G下載(www.5gxz.com)

  查看內存硬件信息NIf5G下載(www.5gxz.com)

  dmidecode -t memoryNIf5G下載(www.5gxz.com)

  # dmidecode 2.11NIf5G下載(www.5gxz.com)

  SMBIOS 2.7 present.NIf5G下載(www.5gxz.com)

  Handle 0x0008, DMI type 16, 23 bytesNIf5G下載(www.5gxz.com)

  Physical Memory ArrayNIf5G下載(www.5gxz.com)

  Location: System Board Or MotherboardNIf5G下載(www.5gxz.com)

  。。。。NIf5G下載(www.5gxz.com)

  Maximum Capacity: 32 GBNIf5G下載(www.5gxz.com)

  。。。。NIf5G下載(www.5gxz.com)

  Handle 0x000A, DMI type 17, 34 bytesNIf5G下載(www.5gxz.com)

  。。。。NIf5G下載(www.5gxz.com)

  Memory DeviceNIf5G下載(www.5gxz.com)

  Array Handle: 0x0008NIf5G下載(www.5gxz.com)

  Error Information Handle: Not ProvidedNIf5G下載(www.5gxz.com)

  Total Width: 64 bitsNIf5G下載(www.5gxz.com)

  Data Width: 64 bitsNIf5G下載(www.5gxz.com)

  Size: 4096 MBNIf5G下載(www.5gxz.com)

  。。。。。NIf5G下載(www.5gxz.com)

  我的主板有4個槽位,只用了一個槽位,上面插了一條4096MB的內存。NIf5G下載(www.5gxz.com)

  3、磁盤NIf5G下載(www.5gxz.com)

  查看硬盤和分區分布NIf5G下載(www.5gxz.com)

  # lsblkNIf5G下載(www.5gxz.com)

  NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTNIf5G下載(www.5gxz.com)

  sda 8:0 0 465.8G 0 diskNIf5G下載(www.5gxz.com)

  ├—sda1 8:1 0 1G 0 part /bootNIf5G下載(www.5gxz.com)

  ├—sda2 8:2 0 9.3G 0 part [SWAP]NIf5G下載(www.5gxz.com)

  ├—sda3 8:3 0 74.5G 0 part /NIf5G下載(www.5gxz.com)

  ├—sda4 8:4 0 1K 0 partNIf5G下載(www.5gxz.com)

  ├—sda5 8:5 0 111.8G 0 part /homeNIf5G下載(www.5gxz.com)

  └—sda6 8:6 0 269.2G 0 partNIf5G下載(www.5gxz.com)

  顯示很直觀NIf5G下載(www.5gxz.com)

  如果要看硬盤和分區的詳細信息NIf5G下載(www.5gxz.com)

  # fdisk -lNIf5G下載(www.5gxz.com)

  Disk /dev/sda: 500.1 GB, 500107862016 bytesNIf5G下載(www.5gxz.com)

  255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectorsNIf5G下載(www.5gxz.com)

  Units = sectors of 1 * 512 = 512 bytesNIf5G下載(www.5gxz.com)

  Sector size (logical/physical): 512 bytes / 4096 bytesNIf5G下載(www.5gxz.com)

  I/O size (minimum/optimal): 4096 bytes / 4096 bytesNIf5G下載(www.5gxz.com)

  Disk identifier: 0x00023728NIf5G下載(www.5gxz.com)

  Device Boot Start End Blocks Id SystemNIf5G下載(www.5gxz.com)

  /dev/sda1 * 2048 2148351 1073152 83 LinuxNIf5G下載(www.5gxz.com)

  /dev/sda2 2148352 21680127 9765888 82 Linux swap / SolarisNIf5G下載(www.5gxz.com)

  /dev/sda3 21680128 177930239 78125056 83 LinuxNIf5G下載(www.5gxz.com)

  /dev/sda4 177932286 976771071 399419393 5 Extended/dev/sda5 177932288 412305407 117186560 83 LinuxNIf5G下載(www.5gxz.com)

  /dev/sda6 412307456 976771071 282231808 83 LinuxNIf5G下載(www.5gxz.com)

  4、網卡NIf5G下載(www.5gxz.com)

  查看網卡硬件信息NIf5G下載(www.5gxz.com)

  # lspci | grep -i ‘eth’NIf5G下載(www.5gxz.com)

  02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)NIf5G下載(www.5gxz.com)

  查看系統的所有網絡接口NIf5G下載(www.5gxz.com)

  # ifconfig -aNIf5G下載(www.5gxz.com)

  eth0 Link encap:以太網 硬件地址 b8:97:5a:17:b3:8fNIf5G下載(www.5gxz.com)

  。。。。。NIf5G下載(www.5gxz.com)

  lo Link encap:本地環回NIf5G下載(www.5gxz.com)

  。。。。。NIf5G下載(www.5gxz.com)

  或者是NIf5G下載(www.5gxz.com)

  ip link showNIf5G下載(www.5gxz.com)

  1: lo: 《LOOPBACK》 mtu 16436 qdisc noqueue state DOWNNIf5G下載(www.5gxz.com)

  link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00NIf5G下載(www.5gxz.com)

  2: eth0: 《BROADCAST,MULTICAST,UP,LOWER_UP》 mtu 1500 qdisc pfifo_fast state UP qlen 1000NIf5G下載(www.5gxz.com)

  link/ether b8:97:5a:17:b3:8f brd ff:ff:ff:ff:ff:ffNIf5G下載(www.5gxz.com)

  如果要查看某個網絡接口的詳細信息,例如eth0的詳細參數和指標NIf5G下載(www.5gxz.com)

  # ethtool eth0NIf5G下載(www.5gxz.com)

  Settings for eth0:NIf5G下載(www.5gxz.com)

  Supported ports: [ TP MII ]NIf5G下載(www.5gxz.com)

  Supported link modes: 10baseT/Half 10baseT/FullNIf5G下載(www.5gxz.com)

  100baseT/Half 100baseT/FullNIf5G下載(www.5gxz.com)

  1000baseT/Half 1000baseT/Full #支持千兆半雙工,全雙工模式NIf5G下載(www.5gxz.com)

  Supported pause frame use: NoNIf5G下載(www.5gxz.com)

  Supports auto-negotiation: Yes #支持自適應模式,一般都支持NIf5G下載(www.5gxz.com)

  Advertised link modes: 10baseT/Half 10baseT/FullNIf5G下載(www.5gxz.com)

  100baseT/Half 100baseT/FullNIf5G下載(www.5gxz.com)

  1000baseT/Half 1000baseT/FullNIf5G下載(www.5gxz.com)

  Advertised pause frame use: Symmetric Receive-onlyNIf5G下載(www.5gxz.com)

  Advertised auto-negotiation: Yes #默認使用自適應模式NIf5G下載(www.5gxz.com)

  Link partner advertised link modes: 10baseT/Half 10baseT/FullNIf5G下載(www.5gxz.com)

  100baseT/Half 100baseT/FullNIf5G下載(www.5gxz.com)

  。。。。。NIf5G下載(www.5gxz.com)

  Speed: 100Mb/s #現在網卡的速度是100Mb,網卡使用自適應模式,所以推測路由是100Mb,導致網卡從支 持千兆,變成要支持百兆NIf5G下載(www.5gxz.com)

  Duplex: Full #全雙工NIf5G下載(www.5gxz.com)

  。。。。。NIf5G下載(www.5gxz.com)

  Link detected: yes #表示有網線連接,和路由是通的NIf5G下載(www.5gxz.com)

  5、其他NIf5G下載(www.5gxz.com)

  查看pci信息,即主板所有硬件槽信息。NIf5G下載(www.5gxz.com)

  lspciNIf5G下載(www.5gxz.com)

  00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) #主板芯片NIf5G下載(www.5gxz.com)

  00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) #顯卡NIf5G下載(www.5gxz.com)

  00:14.0 USB controller: Intel Corporation Panther Point USB xHCI Host Controller (rev 04) #usb控制器NIf5G下載(www.5gxz.com)

  00:16.0 Communication controller: Intel Corporation Panther Point MEI Controller #1 (rev 04)NIf5G下載(www.5gxz.com)

  00:1a.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04)NIf5G下載(www.5gxz.com)

  00:1b.0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04) #聲卡NIf5G下載(www.5gxz.com)

  00:1c.0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4) #pci 插槽NIf5G下載(www.5gxz.com)

  00:1c.2 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 3 (rev c4)NIf5G下載(www.5gxz.com)

  00:1c.3 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 4 (rev c4)NIf5G下載(www.5gxz.com)

  00:1d.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04)NIf5G下載(www.5gxz.com)

  00:1f.0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04)NIf5G下載(www.5gxz.com)

  00:1f.2 IDE interface: Intel Corporation Panther Point 4 port SATA Controller [IDE mode] (rev 04) #硬盤接口NIf5G下載(www.5gxz.com)

  00:1f.3 SMBus: Intel Corporation Panther Point SMBus Controller (rev 04)NIf5G下載(www.5gxz.com)

  00:1f.5 IDE interface: Intel Corporation Panther Point 2 port SATA Controller [IDE mode] (rev 04) #硬盤接口NIf5G下載(www.5gxz.com)

  02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06) #網卡NIf5G下載(www.5gxz.com)

  03:00.0 PCI bridge: Integrated Technology Express, Inc. Device 8893 (rev 41)NIf5G下載(www.5gxz.com)

  如果要更詳細的信息:lspci -v 或者 lspci -vvNIf5G下載(www.5gxz.com)

  如果要看設備樹:lscpi -tNIf5G下載(www.5gxz.com)

  查看bios信息NIf5G下載(www.5gxz.com)

  # dmidecode -t biosNIf5G下載(www.5gxz.com)

  。。。。。。NIf5G下載(www.5gxz.com)

  BIOS InformationNIf5G下載(www.5gxz.com)

  Vendor: American Megatrends Inc.NIf5G下載(www.5gxz.com)

  Version: 4.6.5NIf5G下載(www.5gxz.com)

  Release Date: 04/25/2012NIf5G下載(www.5gxz.com)

  。。。。。。。NIf5G下載(www.5gxz.com)

  BIOS Revision: 4.6NIf5G下載(www.5gxz.com)

  。。。。。。NIf5G下載(www.5gxz.com)

  dmidecode以一種可讀的方式dump出機器的DMI(Desktop Management Interface)信息。這些信息包括了硬件以及BIOS,既可以得到當前的配置,也可以得到系統支持的最大配置,比如說支持的最大內存數等。NIf5G下載(www.5gxz.com)

  如果要查看所有有用信息NIf5G下載(www.5gxz.com)

  dmidecode -qNIf5G下載(www.5gxz.com)

  以上是linux查看硬件信息的所有命令,可以查看CPU、硬盤、網卡、磁盤等硬件的信息。NIf5G下載(www.5gxz.com)

  關于linux系統查看硬件信息的方法就給各位詳細介紹到這里了。有使用linux系統的用戶,如你還不知道怎么查看硬件信息的,現在只要按照上述的步驟去操作就可以查看到你電腦硬件的信息了。NIf5G下載(www.5gxz.com)

分享到:

相關信息

  • Ubuntu 3D桌面特效怎么設置?

    有些用戶為了使桌面更好看、更具動感性,于是就想要設置系統的3D桌面特效,不過不少人卻不知道Ubuntu 3D桌面特效怎么設置?其實方法很簡單,如果你不知道的話,那就趕緊來看看小編整理的Ubuntu 3D桌面特效設置方法吧!...

    2017-08-17

  • Arch Linux不適合當作服務器操作系統的四大原因

    為什么Arch Linux不適合當作服務器操作系統?可能很多用戶都發現了,Linux服務器操作系統一般都是Ubuntu Server、Cent OS、Fedora或者Red Hat等,為什么很少看到Arch Linux呢?因為Arch Linux在服務方面確實存在一些劣勢,下面...

    2017-08-17

系統教程欄目

欄目熱門教程

人氣教程排行

站長推薦

熱門系統下載

公眾號

安徽15选五开奖结果