How many copies of my application are running?

A quick line of code for displaying how many copies of an application are running on a Linux platform:
ps -ef | grep myapplicationname | wc -l | awk ' { print $1-1 } '


Advert:

Leave a Reply

Your email address will not be published. Required fields are marked *