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?
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:Here I'm following my Firefox process:
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):You can do a filter using F3 and type a part of the command into the input field for the filter. This will at least narrow down your list of processes to stop other unrelated commands from pushing those your interested in down or up the page.