In a previous thread the answer
# smartctl -a /dev/sda looks good. The problem by my side is the highly verbose output. Is possible to obtain something more human understadable, something like "hard drive good at 80%" or "
grepping" the essentials from
smartctl -H does: it gives you a pass (no failure predicted) or fail (failure predicted in next 24h). SMART unfortunately doesn't give any way to ask a drive its expected remaining lifespan, other than that. Other than SSDs with their limited write durability, it probably isn't even possible to do in general.
You can get less output from smartctl with some of the other flags. For example
-A will give only the attribute table.
-l selftest will give only the selftest logs, etc.