Count Processes This script is to count the number of Processes in this case we search for “firefox” …. Shell ps aux | grep "firefox" | grep -v grep | wc -l 1 ps aux | grep "firefox" | grep -v grep | wc -l