How to check an hard drive health from the command line using smartctl - LinuxConfig.org

The smartmontools package is generally available in the default repositories of all the major Linux distributions. It contains two utilities useful to check the status of storage with S.M.A.R.T support (Self Monitoring Analysis and Reporting Technology): smartcl and smartd. The former is the utility we use directly to check S.M.A.R.T attributes, run tests, or perform other actions; the latter is the daemon which can be used to schedule operations in the background. In this tutorial we will learn the basic usage of smartctl.

This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-check-an-hard-drive-health-from-the-command-line-using-smartctl