Display SMART health summary

smartctl

sudo smartctl --health {{/dev/sdX}}

click the source code to copy install smartctl on any operating system with command-not-found.com