commands.sh

smartctl

all

Monitor disk health including SMART data.

More info →

Options (6)

-H, --healthboolean

Display SMART health summary

Example: sudo smartctl {{[-H|--health]}} {{/dev/sdX}}
-i, --infoboolean

Display device information

Example: sudo smartctl {{[-i|--info]}} {{/dev/sdX}}
-t, --testboolean

Start a short/long self-test in the background

Example: sudo smartctl {{[-t|--test]}} {{short|long}} {{/dev/sdX}}
-l, --logboolean

Display the self-test log

Example: sudo smartctl {{[-l|--log]}} selftest
-c, --capabilitiesboolean

Display current/last self-test status and other SMART capabilities

Example: sudo smartctl {{[-c|--capabilities]}} {{/dev/sdX}}
-a, --allboolean

Display exhaustive SMART data

Example: sudo smartctl {{[-a|--all]}} {{/dev/sdX}}

Examples (6)

Display SMART health summary

sudo smartctl [-H|--health] /dev/sdX

Display device information

sudo smartctl [-i|--info] /dev/sdX

Start a short/long self-test in the background

sudo smartctl [-t|--test] short|long /dev/sdX

Display the self-test log

sudo smartctl [-l|--log] selftest

Display current/last self-test status and other SMART capabilities

sudo smartctl [-c|--capabilities] /dev/sdX

Display exhaustive SMART data

sudo smartctl [-a|--all] /dev/sdX
made by @shridhargupta | data from tldr-pages