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
Hi, is this running under Windows? If so, whats the url for htop for windows as I can only find linux one. Thanks.
@Martyn
It’s not running under Windows, he is using a terminal emulator logging in to another machine using ssh.
Thanks for this, the default htoprc was blank, this helped me figure out the syntax.
you are a wonderful human being! 🙂
You can edit the setting via htop by pressing F2 in the program.
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.