Monday, May 21, 2012
5:34 PM

pgrep: grep of processes

pgrep searches in the currently running processes for processes that match the search criterion passed as the argument.
For e.g. If we want to view all the processes that are being run by user1 we can use pgrep with the option -u i.e.



This will the pids of all the processes being run by user1. To list the pid as well as the process name add the option "-l". i.e.




0 comments:

Post a Comment