commands.sh

hddtemp

linux

Display temperature of HDD via S.M.A.R.T.

More info →

Options (6)

-S, --syslogboolean

Log temperatures to syslog every `n` seconds

Example: hddtemp {{[-S|--syslog]}} {{nseconds}} {{type}}:{{/dev/sdX}}
-n, --numericboolean

Print only numeric value of temperature without unit

Example: hddtemp {{[-n|--numeric]}} {{type}}:{{/dev/sdX}}
-u, --unitboolean

Define the unit used to denote temperature

Example: hddtemp {{[-u|--unit]}} {{C|F}} {{type}}:{{/dev/sdX}}
-w, --wake-upboolean

Wake ATA drive before attempting to read temperature

Example: hddtemp {{[-w|--wake-up]}} {{type}}:{{/dev/sdX}}
-D, --debugboolean

Enter debug mode to show S.M.A.R.T. fields and their values

Example: hddtemp {{[-D|--debug]}} {{type}}:{{/dev/sdX}}
-q, --quietboolean

Suppress compatibility check for drive types

Example: hddtemp {{[-q|--quiet]}} {{type}}:{{/dev/sdX}}

Examples (8)

Display temperature of a specific drive

hddtemp type:/dev/sdX

Display temperature of a SATA drive assigned to `sda`

hddtemp SATA:/dev/sda

Log temperatures to syslog every `n` seconds

hddtemp [-S|--syslog] nseconds type:/dev/sdX

Print only numeric value of temperature without unit

hddtemp [-n|--numeric] type:/dev/sdX

Define the unit used to denote temperature

hddtemp [-u|--unit] C|F type:/dev/sdX

Wake ATA drive before attempting to read temperature

hddtemp [-w|--wake-up] type:/dev/sdX

Enter debug mode to show S.M.A.R.T. fields and their values

hddtemp [-D|--debug] type:/dev/sdX

Suppress compatibility check for drive types

hddtemp [-q|--quiet] type:/dev/sdX
made by @shridhargupta | data from tldr-pages