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 Question