Linux CLI Tip

Some­times when you’re star­ing the bash prompt, you want to be able to see if a spe­cific pro­gram is cur­rently run­ning. There are a cou­ple of ways to do this; gen­er­ally I run:
ps -ef | grep ProgramName

How­ever I once saw a tip for doing some­thing sim­i­lar with top but I lost the link and for a long time couldn’t find it again. Truth be told, I still haven’t found that spe­cific link but I did some googling and found the right cli switches to do it. Since I want to make sure I remem­ber in the future, I’m post­ing it here:
top -b -n 1 | grep ProgramName

Similar Posts

About Mark McKibben

Mark works as a [REDACTED] for [REDACTED], currently residing in Iowa. CoffeeBear.net is a place for him to blather on about whatever strikes his fancy. He currently spends his "free" time working on a photography project, playing with his cat and attempting to keep his wife happy (not necessarily in that order).

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.