My favorite Htop settings
#######################
apt-get install htop
Use the Fkeys and arrow keys and space bar to control htop.
File location:
/root/.config/htop/htoprc
file and folder permissiosn of the settings folders and file:
8062953 4.0K drwx------ 4 root root 4.0K Feb 1 23:41 .config 8225447 4.0K drwx------ 2 root root 4.0K Feb 1 23:43 htop 8210923 4.0K -rw-r--r-- 1 root root 646 Feb 1 23:56 htoprc
htoprc can be used with any of the following configs but if you pick 1 processor for your 2 cpu system you will miss out on info. likewise if you pick a 2 cpu htop config for a 1 cpu server, then you 2nd cpu bars will be empty (so it doesnt hurt to use the wrong config file). Note you can also edit your config file by pressing F2 in htop and selecting “meters” and adjusting what you have on the left and right pane. you use the f keys to move meters around and add other meters, also remove meters etc, you use arrow keys to move cursor from left to right – the f keys are like the action buttons – when you set up the environment how you want just press F10 to finish setting up the meters and get back to main htop screen then press F10 again to save and exit. In fact thats how I made these configs. The default config of htop, doesnt have an htoprc, but as soon as you start adding or removing things, quit and exit and you will see that your htoprc file was also made
1 processor
##############
# Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. 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=0 hide_userland_threads=0 shadow_other_users=0 show_thread_names=0 highlight_base_name=1 highlight_megabytes=1 highlight_threads=1 tree_view=1 header_margin=1 detailed_cpu_time=0 cpu_count_from_zero=0 color_scheme=0 delay=15 left_meters=Memory Swap CPU(1) CPU(1) left_meter_modes=1 1 1 2 right_meters=Memory Swap Uptime Tasks LoadAverage Load right_meter_modes=2 2 2 2 2 2
2 processors
##############
Contents of file:
# Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. 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=0 hide_userland_threads=0 shadow_other_users=0 show_thread_names=0 highlight_base_name=1 highlight_megabytes=1 highlight_threads=1 tree_view=1 header_margin=1 detailed_cpu_time=0 cpu_count_from_zero=0 color_scheme=0 delay=15 left_meters=Memory Swap CPU(1) CPU(1) CPU(2) CPU(2) left_meter_modes=1 1 1 2 1 2 right_meters=Memory Swap Uptime Tasks LoadAverage Load right_meter_modes=2 2 2 2 2 2