Linux – How to make htop sort by PID htoplinuxprocess How can you make htop sort the list of processes by PID? Best Answer htop --sort-key PID appears to work. Found it via htop --help. htop --sort-key help shows a list of all the column keys. Related SolutionsHtop does not show all processes By default, htop hides kernel threads like nfsd. To show/hide kernel threads, press uppercase K to toggle. htop will save you settings when you exit. https://askubuntu.com/questions/145707/why-doesnt-htop-display-the-same-processes-as-top Linux – Sorted tree view in htop or alternative Looks like Glances should have what you need: glances --tree And then sort using commands m,t, i etc. Full command reference Related QuestionHow to compress or hide the processors at top of htop on large machinesHtop – what is task, thread and runningHow to filter multiple users in htop
Best Answer
appears to work. Found it via htop --help.
shows a list of all the column keys.