Article From:https://www.cnblogs.com/xujingrong/p/9687701.html
top -p `pgrep iperf | tr "\\n" "," | sed 's/,$//'`

Only show the system resource status of the iperf process, of course, you can find the process number by PS command, and then look through the process number to see:

top -p1212 -p2323

The top command above shows only the process resource usage of process ID 1212 and 2323.

Leave a Reply

Your email address will not be published. Required fields are marked *