Skip to content

Tech Antidote

‎ | LINUX | Tech | Security |
  • Home
  • About
  • Contact
  • Privacy Policy

Tag: pgrep

Filter top using process name in Linux

Posted on by
Filter top using process name in Linux

To display statistics only for a process name that match a string using top, you could use the following:

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

Here is a screenshot which only shows stats for firefox:

top filtered output screenshot in Linux

Hope this helps! Cheers!

 

Source/Credits/Reference: StackOverflow

Posted in Linux, TechnologyTagged Linux, pgrep, top, top command, troubleshooting, ubuntuLeave a Comment on Filter top using process name in Linux

Categories

  • Technology
  • Linux / Redhat
  • WordPress
  • Virtualization

Recent Comments

  • Raptor on Install Kali Linux in virtualbox (using ova file)
  • ΞXΤЯ3МΞ on Decoding IR Signals of a Blue Star Air Conditioner using an Arduino
  • Manu on Decoding IR Signals of a Blue Star Air Conditioner using an Arduino
  • ΞXΤЯ3МΞ on Tmux not displaying bash prompt colors
  • Daniel on Tmux not displaying bash prompt colors

Subscribe to this Blog

Enter your email address to follow to this blog and receive notifications of new posts via email.

Member of The Internet Defense League

Search this blog

Search Form

Proudly powered by WordPress
 

Loading Comments...