如何使用 "top" 命令仅过滤掉 运行 进程?
how to filter out only the running processes using "top" command?
当我 运行 top
命令时它显示所有 。我看到 "Sleeping"、"Running" 等进程,但我只想查看当前 运行ning 的进程。我指的是列 S
值为 R
的那些。我应该如何在顶级交互命令中过滤它?欢迎大家发表意见。
在 top 命令上:
按o - 打开不区分大小写的过滤器
在提示符下,键入 S=R。这将按状态过滤,运行 值
手册页:
5e. FILTERING in a Window
You can use this Other Filter feature to establish selection criteria which will then determine which tasks are shown in the
`current' window.
Establishing a filter requires: 1) a field name; 2) an operator; and 3) a selection value, as a minimum. This is the most complex of top's user input requirements so, when you make a mistake, command recall will be your friend. Remember the Up/Down arrow keys or their aliases when prompted for input.
当我 运行 top
命令时它显示所有 S
值为 R
的那些。我应该如何在顶级交互命令中过滤它?欢迎大家发表意见。
在 top 命令上:
按o - 打开不区分大小写的过滤器
在提示符下,键入 S=R。这将按状态过滤,运行 值
手册页:
5e. FILTERING in a Window You can use this Other Filter feature to establish selection criteria which will then determine which tasks are shown in the `current' window.
Establishing a filter requires: 1) a field name; 2) an operator; and 3) a selection value, as a minimum. This is the most complex of top's user input requirements so, when you make a mistake, command recall will be your friend. Remember the Up/Down arrow keys or their aliases when prompted for input.