Question: what is pgrep command used for?
Answer: 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. ... Another pgrep option (-l) will allow you to see a user's process IDs along with the name of each process.