我在中显示了很长的进程列表htop
,但是我只对其中之一感兴趣。随着旧进程的终止和新进程的产生,htop
不断更新显示的进程列表,这意味着我感兴趣的一个进程不断在列表中上下移动。
是否有可能以某种方式禁用此行为?
也就是说,我想将滚动条固定到该特定过程。我怎样才能做到这一点?
您不能将给定的过程行固定在顶部,但是htop
如果按Shift+可以遵循一个过程F。从手册页:
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.
在这里,我遵循我的Firefox流程:
请注意,如果您只对某个特定过程感兴趣,则-p <pid>
可以完成您想要的操作(12352是我系统上Firefox的pid):
$ htop -p 12352
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句