Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
37
rated 0 times [  37] [ 0]  / answers: 1 / hits: 21828  / 1 Year ago, wed, march 22, 2023, 10:04:50

I have a long list of processes displayed in htop, but I am only interested in one of them. As old processes terminate and new processes are spawned, htop keeps updating the displayed list of processes, which means that the one process I am interested in keeps jumping up and down the list.



Is it possible to disable this behavior somehow?



That is, I would like to anchor the scroll to this particular process. How can I do this?


More From » htop

 Answers
4

You can't anchor a given process line to the top but htop can follow a process if you press Shift+F. From the man page:




   F    "Follow" process: if the sort order causes the currently  selected
process to move in the list, make the selection bar follow it.
This is useful for monitoring a process: this way, you can keep a
process always visible on screen. When a movement key is used,
"follow" loses effect.



Here I'm following my Firefox process:



enter image description here



Note that if you're only interested in one particular process, the -p <pid> will do what you want (12352 is the pid of Firefox on my system):



$ htop -p 12352


enter image description here


[#22547] Thursday, March 23, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
adedes

Total Points: 454
Total Questions: 114
Total Answers: 111

Location: Turks and Caicos Islands
Member since Fri, May 8, 2020
4 Years ago
;