How can you make htop sort the list of processes by PID?
Asked
Active
Viewed 9,802 times
2 Answers
16
htop --sort-key PID
appears to work. Found it via htop --help.
htop --sort-key help
shows a list of all the column keys.
BigChief
- 541
- 3
- 8
13
Press F6 and select PID...
Daniel Beck
- 109,300
- 14
- 287
- 334
-
2Is there another way without having to press F6? – tony_sid Apr 27 '11 at 05:37
-
11@OSX Press `>`. – Daniel Beck Apr 27 '11 at 05:39
-
That causes the program to crash. – tony_sid Apr 27 '11 at 05:47
-
1@OSX It works on my machine and is documented in [htop's man page](http://linux.die.net/man/1/htop). It *would* work if you didn't have another issue. – Daniel Beck Apr 27 '11 at 05:48
-
I'm going to upvote you only because I think the OP is a little stingy here - there's nothing wrong with F6, and almost keyboard where it doesn't exist (with few exceptions). – new123456 Apr 27 '11 at 22:55
-
I'm using an external keyboard, and F6 is assigned to do something else. In order to use F6 as a function key, I have to press the Fn button, but that's not on the external keyboard. – tony_sid Apr 30 '11 at 05:45
-
@OSXJedi As I wrote before, press `>` (greater than) instead. – Daniel Beck Apr 30 '11 at 06:02