AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 545230
Accepted
becko
becko
Asked: 2014-11-04 10:47:23 +0800 CST2014-11-04 10:47:23 +0800 CST 2014-11-04 10:47:23 +0800 CST

将 htop 锚定到一个特定的进程?

  • 772

我在 中显示了一长串进程htop,但我只对其中一个感兴趣。随着旧进程的终止和新进程的产生,htop不断更新显示的进程列表,这意味着我感兴趣的进程不断在列表中跳上跳下。

是否可以以某种方式禁用此行为?

也就是说,我想将滚动锚定到这个特定的过程。我怎样才能做到这一点?

htop
  • 2 2 个回答
  • 18360 Views

2 个回答

  • Voted
  1. Best Answer
    Sylvain Pineau
    2014-11-04T11:43:55+08:002014-11-04T11:43:55+08:00

    您不能将给定的流程线锚定到顶部,但如果您按+htop可以遵循流程。从手册页:ShiftF

       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
    

    在此处输入图像描述

    • 32
  2. James D Polo
    2018-10-30T14:22:48+08:002018-10-30T14:22:48+08:00

    您可以使用过滤器F3并在过滤器的输入字段中键入命令的一部分。这至少会缩小您的进程列表,以阻止其他不相关的命令将您感兴趣的命令向下或向上推送。

    • 1

相关问题

  • 在 htop 中仅显示用户的进程?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve