commands
smartctl — Inspect drive health
Query overall health status on an authorized supported device. Status and attributes are device-specific; exit status is a bitmask. No real device is required for help. Use a fresh private workspace; live operations are VM-only.
Formal Syntax & Structure
linux syntaxlinux
smartctl -H DEVICEParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -H | option | Health summary |
| DEVICE | operand | Verified authorized drive |
Return Value
exit status and output
Query overall health status on an authorized supported device. Status and attributes are device-specific; exit status is a bitmask. No real device is required for help.
Working Example
Example Snippetlinux
smartctl --help