Trick Out Your HTOP With Useful Features

Here’s the htop I’ve came up with over several years.

Simply create a “.htoprc” in your home folder with the below contents.

# Beware! This file is rewritten every time htop exits.
# The parser is also very primitive, and not human-friendly.
# (I know, it's in the todo list).
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=0
highlight_base_name=0
highlight_megabytes=1
highlight_threads=0
tree_view=0
header_margin=1
detailed_cpu_time=1
color_scheme=0
delay=15
left_meters=Hostname Tasks LoadAverage Uptime Memory Memory Swap CPU CPU
left_meter_modes=2 2 2 2 1 2 1 1 2
right_meters=AllCPUs
right_meter_modes=1

5 Responses

  1. Martyn November 25, 2010 / 4:38 pm

    Hi, is this running under Windows? If so, whats the url for htop for windows as I can only find linux one. Thanks.

  2. SSH December 22, 2010 / 1:55 pm

    @Martyn
    It’s not running under Windows, he is using a terminal emulator logging in to another machine using ssh.

  3. Dijit December 26, 2010 / 12:15 pm

    Thanks for this, the default htoprc was blank, this helped me figure out the syntax.

    you are a wonderful human being! 🙂

    • Tyler Bishop December 26, 2010 / 1:41 pm

      You can edit the setting via htop by pressing F2 in the program.

  4. Tyler Bishop July 20, 2013 / 12:15 pm

    You can edit from within htop but its almost faster to jump into the config file and have at it.

    Be sure if using the gui to actually close the program with f10? f12? vs just ctrl+c or else it will not save your settings.

Leave a Reply

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