Go Hardware information displayed under Linux--LSHW

Source: Internet
Author: User

Hardware information displayed under Linux--LSHW

Lshw
LSHW (Hardware Lister) is another tool that can view hardware information, and it can also be used to do some hardware benchmark.
The tool is to use/proc inside to read some files to display the relevant information, it uses the following files and directories (under the file):
/proc/cpuinfo Displaying CPU information
/PROC/BUS/PCI displaying PCI information
/PROC/SCSI displaying SCSI information
/proc/net/dev Displaying network device information
/proc/kcore reading related information from a memory image
/proc/ide Displaying IDE device information
/proc/devices
/proc/mounts
/proc/fstab

  Download and install:
 -------------------------------------------------------------
 cd/tmp
 wget http://ezix.org/software/files/lshw-b.02.14.tar.gz 
 tar lshw-b.02.14.tar.gz
 cd lshw-b.02.14
 make && make install
 -------------------------------------------------------------
  usage:
 1. Simplest usage:
 #  lshw
  Like Dmidecode, output a whole bunch of stuff.
 
 2. Output
 #  lshw-html > info.html  
 #   lshw-xml >info.xml

 3. Display device list, output includes device path (path), Category (class), and simple description
 #  Lshw-short
 
 4. Displays a list of devices, including bus information, SCSI, USB, IDE, PCI address, and so on.
 #  lshw-businfo  
 
 5. Display devices for the specified category
 #   lshw-c class  #  Lshw-class class  
  The class here can be viewed through lshw-short. For example
 #  lshw-c memory  
 

6. View Help

# lshw-h
Hardware Lister (LSHW)-b.02.14
USAGE:LSHW [-format] [-options ...]
Lshw-version

-version Print Program version (b.02.14)

Format can be
-html output hardware tree as HTML
-xml output hardware tree as XML
-short Output hardware paths
-businfo Output Bus Information

Options can
-class class only show a certain class of hardware
-C class Same as '-class class '
-C class Same as '-class class '
-disable test Disable a test (like PCI, ISAPNP, CPUID, etc)
-enable test enable a test (like PCI, ISAPNP, CPUID, etc)
-quiet don ' t display status
-sanitize sanitize output (remove sensitive information like serial numbers, etc.)
-numeric output numeric IDs (for PCI, USB, etc)

#


Relatively speaking, LSHW believe the information is relatively simple.

This digest from: http://www.sanotes.net/html/y2009/316.html, http://jiajun.iteye.com/blog/656709

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.