Monday, August 13, 2012

[HOW TO] Find the process ID (PID) of a running program

The command pidof allows to find the process ID (PID) of a running program. All that's necessary is to supply the program name/command.


Here we're trying to determine the PID for the Chromium browser. Two processes were found:

$ pidof chromium-browser
4639 4637


pidof(8) - Linux manpage

No comments:

Post a Comment