dmidecode
Overview
The dmidecode command dumps a computer’s DMI (SMBIOS) table contents in a human-readable format. It provides detailed hardware information from the BIOS.
Syntax
dmidecode [options]Common Options
| Option | Description |
|---|---|
-t type |
Only show specified type |
-s keyword |
Only show specified DMI string |
-d file |
Read from file instead of /dev/mem |
-u |
Display UUID |
-h |
Display help |
-V |
Display version |
--oem-string N |
Display OEM string N |
--no-sysfs |
Don’t use sysfs |
--from-dump file |
Read from dump file |
DMI Types
| Type | Description |
|---|---|
| 0 | BIOS |
| 1 | System |
| 2 | Baseboard |
| 3 | Chassis |
| 4 | Processor |
| 5 | Memory Controller |
| 6 | Memory Module |
| 7 | Cache |
| 17 | Memory Device |
Key Use Cases
- Hardware inventory
- System information
- Memory configuration
- BIOS details
- Troubleshooting
Examples with Explanations
Example 1: System Info
dmidecode -t systemShow system information
Example 2: Memory Info
dmidecode -t memoryShow memory information
Example 3: BIOS Info
dmidecode -t biosShow BIOS information
Common Usage Patterns
Processor info:
dmidecode -t processorMemory slots:
dmidecode -t 17System serial:
dmidecode -s system-serial-number
Security Considerations
- Root access required
- Sensitive information
- System identification
- Data protection
- Access control
Additional Resources
Best Practices
- Regular scanning
- Documentation
- Data protection
- Access control
- Change tracking
Information Types
- System
- BIOS
- Processor
- Memory
- Cache
Troubleshooting
- Access errors
- Missing information
- Incorrect data
- System compatibility
- Version issues