smartctl
Monitor disk health including SMART data. tldr-pages
On several platforms
Several platforms
Display SMART health summary
sudo smartctl --health /dev/sdXIdentifyDisplay device information
sudo smartctl --info /dev/sdXIdentifyStart a short/long self-test in the background
sudo smartctl --test short /dev/sdXIdentifyDisplay the self-test log
sudo smartctl --log selftest /dev/sdXIdentifyDisplay current/last self-test status and other SMART capabilities
sudo smartctl --capabilities /dev/sdXIdentifyDisplay exhaustive SMART data
sudo smartctl --all /dev/sdXIdentify