查看硬件信息。
基本語法 基本用法
lshw [-format] [-options ...]
format
| 參數 | EN 解釋 | 中文翻譯 | 備注 |
|---|---|---|---|
| -html | output hardware tree as HTML | 將硬件樹輸齣為 HTML | |
| -xml | output hardware tree as XML | 將硬件樹輸齣為 XML | |
| -short | output hardware paths | 輸齣硬件路徑 | |
| -businfo | output bus information | 輸齣總綫信息 |
options
| 參數 | EN 解釋 | 中文翻譯 | 備注 |
|---|---|---|---|
| -class CLASS | only show a certain class of hardware | 僅展示某類硬件 | |
| -C CLASS | same as '-class CLASS' | 如同 -class CLASS | |
| -version | print program version | 打印程序版本 | |
| -disable TEST | disable a test (like pci, isapnp, cpuid, etc. ) | 禁用測試 (像 pci、isapnp、cpuid 等) | |
| -enable TEST | enable a test (like pci, isapnp, cpuid, etc. ) | 啓用測試 (像 pci、isapnp、cpuid 等) | |
| -quiet | don't display status | 不顯示狀態 | |
| -sanitize | sanitize output (remove sensitive information like serial numbers, etc.) | 淨化輸齣 (移除敏感信息,像序列號等) | |
| -numeric | output numeric IDs (for PCI, USB, etc.) | 輸齣數字 ID (用於 PCI、USB 等) |
| 功能 | 命令 | 文字解釋 | 示例 | 示例解釋 |
|---|---|---|---|---|
| 幫助 | lshw --help | 展示幫助信息 | ||
| 版本 | lshw -version | 展示版本信息 |
版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。