Find Process IDs by name

pgrep command can be used to find process id by the name of the process.

Example:
Lets find the process id of chrome

$ pgrep -li chrome
1155 Google Chrome
1162 Google Chrome H
1171 Google Chrome H
1172 Google Chrome H
1173 Google Chrome H
1174 Google Chrome H
1214 Google Chrome H
1271 Google Chrome H
1275 Google Chrome H

Published by

Amar

I am crazy about new technologies and I have Inquisitive thirst to learn new things. I love to automate things which could increase productivity.

Leave a Reply

Your email address will not be published. Required fields are marked *