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/,$//')