hwinfo
Overview
The hwinfo
command provides comprehensive hardware information. It’s a powerful tool that probes for hardware and displays detailed information about various hardware components.
Syntax
hwinfo [options]
Common Options
Option | Description |
---|---|
--short |
Brief hardware list |
--arch |
Show architecture info |
--bios |
Show BIOS info |
--block |
Show block devices |
--cpu |
Show CPU info |
--disk |
Show disk devices |
--memory |
Show memory info |
--network |
Show network devices |
--pci |
Show PCI devices |
--usb |
Show USB devices |
--all |
Show all hardware |
--save-config |
Save hardware config |
--log file |
Write log to file |
Key Use Cases
- Hardware inventory
- System diagnostics
- Driver verification
- System documentation
- Troubleshooting
Examples with Explanations
Example 1: Brief Summary
hwinfo --short
Show brief hardware list
Example 2: CPU Info
hwinfo --cpu
Show detailed CPU information
Example 3: Storage Info
hwinfo --disk --short
Show brief disk information
Understanding Output
Categories of information: - System overview - CPU details - Memory configuration - Storage devices - Network interfaces - Peripheral devices
Common Usage Patterns
Full system scan:
hwinfo --all
Network check:
hwinfo --network
Save hardware info:
hwinfo --all --log hardware.log
Performance Analysis
- Comprehensive scanning
- Resource intensive
- Database lookups
- Device probing time
- Log file generation
Additional Resources
Hardware Categories
- Processors
- Memory modules
- Storage devices
- Network adapters
- Peripheral devices
Best Practices
- Regular hardware audits
- Document configurations
- Monitor changes
- Keep logs
- Update hardware database