How to have htop save configuration on exit

htop is awesome. I use it all the time to monitor all the servers I use. It was only until recently that I noticed it has some great configuration options, namely the "Tree View." This allows you to see a hierarchy of processes, which can be really helpful in finding out why certain processes are running.

I quickly realized it would be a pain to have to constantly hit F5 every time I opened the program, until I realized there was a way to make htop remember your last configuration.

What you want to do is make sure you close out of htop with F10 instead of Ctrl+C, which I normally use. You only need to use F10 when you want to save the settings, and can subsequently close out how you normally do!


9 thoughts on “How to have htop save configuration on exit”

  1. Thanks for the tip – now I know I’m not completely crazy… for some reason my ubuntu 12.04.3 had my ~/.config/htop/htoprc with root only permissions so I was never able to see htop actually save settings. Cheers.

  2. Geez, you seem to be the only one on the internets that knows how to save these settings. Thanks dude!

  3. Thanks for this. I was looking at permissions in htoprc and wouldn’t have found out how to store settings otherwise.

  4. Thank You for the tip, I also happen to enjoy HTOP, awesome little & cute program that is.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>