Archives / Snippets / Projets

By default, htop lists each thread of a process separately, while ps doesn't. Turn off the display of threads: in the “Setup / Display options” menu, “Hide userlands threads”. This puts the following line in your ~/.htoprc (you can alternatively put it there manually):

hide_userland_threads=1 (Also hide_kernel_threads=1, but it's 1 by default.)