25 July 2011

identify a process ID with pgrep -f *string*

from the Linux / Unix Man Pages

pgrep

pgrep, pkill - look up or signal processes based on name and other

...

DESCRIPTION
pgrep looks through the currently running processes and lists the pro-
cess IDs which matches the selection criteria to stdout. All the cri-
teria have to match. 

...

OPTIONS

...

   -f     The pattern is normally only matched against the process name.
When -f is set, the full command line is used.
...

SEE ALSO
ps(1) regex(7) signal(7) killall(1) skill(1) kill(1) kill(2)

...

No comments:

Post a Comment

Pages