Count httpd processes

pidof httpd | wc -w
Returns the number of running httpd processes
Sample Output
21

-1
By: eneko
2011-02-24 16:46:46

1 Alternatives + Submit Alt

What Others Think

Why have these been voted down? Does anyone know of a cleaner way to count the number of processes?
l0b0 · 446 weeks and 4 days ago
Preventive healthcare consists of measures taken for disease prevention. MaxRemind top rank medical billing company USA offers Preventive Healthcare Medical Billing Services and medical credentialing services to Preventive healthcare physicians in all states of USA at lowest rates.
stevematt · 20 weeks and 5 days ago
If you can't write the program yourself, try reading about this essay first. Maybe you have a school assignment with these processes, or maybe you need to write an essay on success? Then just visit https://erin-maloney.com/, I did this every time I couldn't write my own essay.
EthanVaughan · 9 weeks and 5 days ago
Does support your entire worked with site using cPanel support interface and get sound great to all of you here? We overall can see https://www.essaywritinglab.co.uk/nursing-assignment/ that as that was what we will really need to like in the free hours as that was the means by which we can help the motivation behind them now.
noshaan1 · 4 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: