Home > Software engineering >  Rolling count of processes linux
Rolling count of processes linux

Time:12-09

Is there a way to get a rolling count of the number of processes running, especially of tasks which match a specific string?

Something like top | grep TaskName | wc -l

CodePudding user response:

Like this?

watch -n 1 'pgrep -c TaskName'

  • Related