Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a command I can use just to get the hard disk temperature in the terminal?

Is this possible without a third party app?

share|improve this question
up vote 3 down vote accepted

Unfortunately you won't be able to do this without a third party app. However, if you're happy to use a third party software it is possible to get the temperature in terminal.

You need to use temperature monitor, which is a free application and provides a command line option. The ins and outs of using the software may be a bit much to go into here, but you can find all the instructions here.

share|improve this answer
Thanks, I appreciate it. – Jack Stewart Aug 6 '12 at 3:08

You could try Smartmontools (S.M.A.R.T. Monitoring Tools) which has a command-line app. Most (if not all?) hard drives will report their temperature in the S.M.A.R.T. report.

There's also a native GUI SMARTReporter app which lets you perform certain actions based on temperature, if that's what you're after (and also happens to include the smartctl command-line binary — though if you're just after the binary you should, as a rule, get it from the "original" developers, just to be safe!).

share|improve this answer

You will only be able to get a temperature reading if there is a sensor. This article explains how you can get this information via the ioreg command.

This one-liner worked for me to get the GPU temperature (unfortunately I was not able to see any other IOHWSensors on my machine):

echo $((`ioreg -c IOHWSensor | grep "current-value" | grep -oE [0-9]+` / 65536))
share|improve this answer

iStat Menus shows a lot of detailed information about the running state of the system, including all temperature sensors.

share|improve this answer
He wants something without third party app. – revolver Jul 7 '13 at 6:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.