Linux 用命令行查看硬件信息

2011-08-05 23:49

Linux 用命令行查看硬件信息

by ITwhy

at 2011-08-05 15:49:54

original http://wowubuntu.com/hardware-info.html

之前我们介绍过,在 Linux 上用图形化工具来查看硬件信息,现在我们再介绍一下用命令行方式来完成此工作。

linux 查看硬件信息:proc

使用/proc查看的硬件信息虽然丰富,但是可读性不好,尤其是我这样的菜鸟,可谓天文!

cat /proc/cpuinfo
#查看CPU信息,内容很全哦!

cat /proc/meminfo
#查看内存信息。

cat /proc/ioports
#查看IO端口

cat /proc/swaps
#查看交换分区信息(/proc)

cat /proc/interrupts
#中断信息

cat /proc/partitions
#查看磁盘分区

cat /proc/bus/usb/devices
#查看USB设备

cat /proc/bus/input/devices
#查看输入设备:键盘鼠标

cat /proc/bus/pci/devices
#查看PCI设备

cat /proc/loadavg
#查看系统负载

cat /var/log/demsg
#查看开机检查的硬件,可以使用grep过虑:eth,cpu,mem,pci,usb,vga,sda……

linux 查看硬件信息:终端命令行

使用终端命令行查看的硬件信息可读性好很多了,而且也比较丰富。

lscpu
#查看CPU信息

lspci
#查看PCI设备

lsusb
#查看USB设备

vmstat
#报告虚拟内存统计信息

fdisk -l
#查看分区信息

hdparm -i /dev/sda
#查看磁盘参数

df -h
#查看磁盘分信息

dmidecode
#读取系统DMI表来显示硬件和BIOS信息。

lsmod
#当前加载的驱动

dmesg
#查看开机检查的硬件,可以使用grep过虑:eth,cpu,mem,pci,usb,vga,sda……

uptime
#查看系统负载

NOTE:

也可以安装其它软件查看硬件信息:aptitude install lshw hwinfo,这些也很强大的。

linux 查看硬件信息:脚本

呵呵,非常方便,我说的是使用别人的成果,因为我自已不会写呀!使用本站下载hwconfig脚本,这个脚本还有参数哦:hwconfig -h。
linux 查看硬件信息脚本:hwconfig

转载地址:Linux 查看硬件信息

本文采用CC协议进行授权,转载本文请注明本文链接。/ 6 条留言


  • Twitter / Buzz / 微博 / 问答 / 投稿 / 加入我们 wow0slx6bcs721xo1udcc
    - 高性价比 Ubuntu VPS / 本站架设于 PhotonVPS / 定制 Ubuntu T-Shirt

          <tr>
              <td style="margin:0!important;padding:0!important;line-height:20px!important">
                  <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                  <a style="text-decoration:none!important" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwowubuntu.com%2Fhardinfo.html&amp;from=http%3A%2F%2Fwowubuntu.com%2Fhardware-info.html">
                      <font size="-1" color="#333333" style="line-height:1.65em;font-size:13px!important">Ubuntu 上获取硬件信息的几件方式</font>
                  </a>
              </td>
          </tr>
          <tr>
              <td style="margin:0!important;padding:0!important;line-height:20px!important">
                  <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                  <a style="text-decoration:none!important" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwowubuntu.com%2Ftop.html&amp;from=http%3A%2F%2Fwowubuntu.com%2Fhardware-info.html">
                      <font size="-1" color="#333333" style="line-height:1.65em;font-size:13px!important">[新手教程] Linux Top 命令</font>
                  </a>
              </td>
          </tr>
          <tr>
              <td style="margin:0!important;padding:0!important;line-height:20px!important">
                  <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                  <a style="text-decoration:none!important" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwowubuntu.com%2Flinux-20.html&amp;from=http%3A%2F%2Fwowubuntu.com%2Fhardware-info.html">
                      <font size="-1" color="#333333" style="line-height:1.65em;font-size:13px!important">Linux 20周年开发者庆典活动!</font>
                  </a>
              </td>
          </tr>
          <tr>
              <td style="margin:0!important;padding:0!important;line-height:20px!important">
                  <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                  <a style="text-decoration:none!important" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwowubuntu.com%2Fbanshee175.html&amp;from=http%3A%2F%2Fwowubuntu.com%2Fhardware-info.html">
                      <font size="-1" color="#333333" style="line-height:1.65em;font-size:13px!important">Banshee 1.7.5 发布,改善硬件支持</font>
                  </a>
              </td>
          </tr>
          <tr>
              <td style="margin:0!important;padding:0!important;line-height:20px!important">
                  <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                  <a style="text-decoration:none!important" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwowubuntu.com%2Flinux-20-year.html&amp;from=http%3A%2F%2Fwowubuntu.com%2Fhardware-info.html">
                      <font size="-1" color="#333333" style="line-height:1.65em;font-size:13px!important">庆祝 Linux 20 周岁</font>
                  </a>
              </td>
          </tr>
    

    相关文章:
    无觅