Using pgrep to get pid's of matching command lines:

top -c -p $(pgrep -d',' -f string_to_match_in_cmd_line)

top -p expects a comma separated list of pids so we use -d',' in pgrep. The -f flag in pgrep makes it match the command line instead of program name.

每天一个linux命令(44):top命令- peida - 博客园

https://www.cnblogs.com/peida/archive/2012/12/24/2831353.html

2012年12月24日 ... top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用 状况,类似于Windows的任务管理器。下面详细介绍它的使用 ...

top command in Linux with Examples - GeeksforGeeks

https://www.geeksforgeeks.org/top-command-in-linux-with-examples/

May 27, 2019 ... top command is used to show the Linux processes. It provides a dynamic real- time view of the running system. Usually, this command shows ...

Linux top命令| 菜鸟教程

https://www.runoob.com/linux/linux-comm-top.html

Linux top命令Linux 命令大全Linux top命令用于实时显示process 的动态。 使用 权限:所有使用者。 语法top [-] [d delay] [q] [c] [S] [s] [i] [n] [b] 参数说明: d : 改变 ...

linux的top命令参数详解- ggjucheng - 博客园

https://www.cnblogs.com/ggjucheng/archive/2012/01/08/2316399.html

2012年1月8日 ... 简介top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源 占用状况,类似于Windows的任务管理器。top显示系统当前的 ...

12 TOP Command Examples in Linux

https://www.tecmint.com/12-top-command-examples-in-linux/

Mar 4, 2013 ... In this article, we are trying to explore top command which is one of the most frequently used commands in our daily system administrative jobs.

top命令详解- 简书

https://www.jianshu.com/p/078ed7895b0f

2017年3月11日 ... 这是一张top的图第一行2 user,包含系统用户。 第二行僵尸进程:一个子进程在其 父进程没有调用wait()或waitpid()的情况下退出。这个子进程就是 ...

Linux中top命令参数详解_yjclsx的博客-CSDN博客_top命令

https://blog.csdn.net/yjclsx/article/details/81508455

2019年7月31日 ... top命令用法top命令经常用来监控linux的系统状况,是常用的性能分析工具,能够 实时显示系统中各个进程的资源占用情况。top的使用方式top [-d ...

A Guide to the Linux "Top" Command - Boolean World

https://www.booleanworld.com/guide-linux-top-command/

The top command allows users to monitor processes and system resource usage on Linux. It is one of the most useful tools in a sysadmin's toolbox, and it comes ...

How to Use the Linux top Command (and Understand Its Output)

https://www.howtogeek.com/668986/how-to-use-the-linux-top-command-and-understand-its-output/

May 12, 2020 ... The Linux top command is one of the stalwarts of Unix-like operating systems. Its utilitarian display is packed with useful information about your ...

top(1) - Linux manual page

https://man7.org/linux/man-pages/man1/top.1.html

COMMAND-LINE Options 2. SUMMARY Display a. UPTIME and LOAD Averages b. TASK and CPU States c. MEMORY Usage 3. FIELDS / Columns Display a.

How to customize the Linux top command | Enable Sysadmin

https://www.redhat.com/sysadmin/customize-top-command

Sep 18, 2019 ... The top command offers many customization options. Here's one way to take advantage of them in order to check out memory use.

Top Command in Linux – Linux Hint

https://linuxhint.com/top_-command-_linux/

In UNIX-like systems, the top command reports valuable system information like running processes and resource usage. It shows processor activity and ...

top(1): tasks - Linux man page

https://linux.die.net/man/1/top

COMMAND-LINE Options. The command-line syntax for top consists of: -hv | - abcHimMsS -d delay -n iterations -p pid [,pid ...

top -c command in linux to filter processes listed based on ...

https://stackoverflow.com/questions/12075591/top-c-command-in-linux-to-filter-processes-listed-based-on-processname

Using pgrep to get pid's of matching command lines: top -c -p $(pgrep -d',' -f string_to_match_in_cmd_line). top -p expects a comma separated ...