• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Running Top by Process

September 11, 2022

Here’s how to isolate a process via the top command.

top -c -p $(pgrep -f process_name | head -20 | tr "\\n" "," | sed 's/,$//')

top -c -p $(pgrep -f process_name | head -20 | tr "\\n" "," | sed 's/,$//')

Filed Under: Linux Tagged With: isolate, process, run, top

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023