Linux: Count the number of processes running.

codeThere was a need to determine the number of processes that was running on a Linux installation, specifically CentOS 5.6. I can’t find the source of this again, however, did use Google to find this information. Anyway, here is the command line needed. This command returned the desired results.

 

 ps auxh | wc -l 

The result will be a number, the number of processes that is running.