Linux command
hddtemp 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
hddtemp SATA:/dev/sda
Example
hddtemp -u F SATA:/dev/sda
Example
hddtemp -n SATA:/dev/sda
Example
hddtemp -S 60 SATA:/dev/sda
Wake
hddtemp -w SATA:/dev/sda
Example
hddtemp -d SATA:/dev/sda
Example
hddtemp -D SATA:/dev/sda
说明
hddtemp displays the temperature of hard disk drives via S.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology). It can show temperature for SATA, PATA, and SCSI drives that support S.M.A.R.T.
参数
- -n, --numeric
- Print only the numeric temperature value without units
- -u, --unit=UNIT
- Set temperature unit (C for Celsius, F for Fahrenheit)
- -S, --syslog=SECONDS
- Log temperatures to syslog every N seconds
- -d, --daemon
- Run as daemon (TCP/IP server mode)
- -l, --listen=ADDR
- Listen on specified address in daemon mode
- -p, --port=PORT
- Listen on specified port in daemon mode (default: 7634)
- -w, --wake-up
- Wake up the drive before reading temperature
- -q, --quiet
- Suppress drive type compatibility warnings
- -D, --debug
- Show S.M.A.R.T. fields and their values
- -f, --file=FILE
- Use specified drive database file
FAQ
What is the hddtemp command used for?
hddtemp displays the temperature of hard disk drives via S.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology). It can show temperature for SATA, PATA, and SCSI drives that support S.M.A.R.T.
How do I run a basic hddtemp example?
Run `hddtemp SATA:/dev/sda` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n, --numeric do in hddtemp?
Print only the numeric temperature value without units