2 ms·
Completely off-topic, but... ps aux | grep apache | grep -v grep | wc -l A more succinct, albeit less portable, alternative is 'pgrep apache | wc -l'. (Or
by cperciva 16y ago
Completely off-topic, but...
ps aux | grep apache | grep -v grep | wc -l
A more succinct, albeit less portable, alternative is 'pgrep apache | wc -l'. (Or 'pgrep httpd | wc -l', depending on your apache commandline.)