Sometimes when you’re staring the bash prompt, you want to be able to see if a specific program is currently running. There are a couple of ways to do this; generally I run:
ps -ef | grep ProgramName

However I once saw a tip for doing something similar 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 specific link but I did some googling and found the right cli switches to do it. Since I want to make sure I remember in the future, I’m posting it here:
top -b -n 1 | grep ProgramName

Related Posts