概要

  • ハードウェア情報を表示する。(lshw)

インストール

  • EPEL リポジトリ
    # yum install -y lshw

コマンド

  • ヘルプ
    # lshw --help
    Hardware Lister (lshw) - B.02.18
    usage: lshw [-format] [-options ...]
           lshw -version
    
            -version        print program version (B.02.18)
    
    format can be
            -html           output hardware tree as HTML
            -xml            output hardware tree as XML
            -json           output hardware tree as a JSON object
            -short          output hardware paths
            -businfo        output bus information
    
    options can be
            -dump OUTFILE   save hardware tree to a file
            -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.)
            -notime         exclude volatile attributes (timestamps) from output
  • 短縮形で表示
    # lshw -short
  • メモリ情報の表示
    # lshw -class memory
  • ディスク情報の表示
    # lshw -class disk
  • クラスリスト
    • bridge
    • bus
    • disk
    • display
    • generic
    • input
    • memory
    • multimedia
    • network
    • processor
    • storage
    • system
    • volume

Link