smartctl is a bash control and and monitor utility for the Self-Monitoring, Analysis and Reporting Technology of most IDE/ATA drives.

smartctl [options] <device>

-a

Returns all SMART data.

Further reading:

  • man smartctl