IDG Contributor Network: Sniffing out processes using pgrep

Click here to visit Original posting

The pgrep command is a tool for looking through currently running processes based on a number of different attributes and providing the process IDs (PIDs), but it does a lot of other things as well. The available options won't necessarily be the same as you move from one system to another, but you're sure to discover some pgrep commands that will prove very useful when you're busy looking into what's running on your systems.

The most basic pgrep command will display the PIDs for whatever command you might be inquiring about. For example, if you want a list of all of the Apache daemons running on a web server, the pgrep httpd command does that easily.

To read this article in full or to leave a comment, please click here