Find process id (pid) by name

April 16, 2007

You can find the pid of Bash by typing this into a terminal:

# ps -ax | grep bash30892 pts/0    Ss     0:00 bash12556 pts/0    S+     0:00 grep bash

30892 is the process id. That last line is the search itself.

Powered by ScribeFire.