Find the PID from the Process Name
October20
How to find the process id from the process name ?
In linux, you have a command called pidof
This pidof command is used to find out the process id of the given process name
Example:
kamaraj@kamaraj-laptop:~/Desktop/testing$ ps -ef | grep fire
kamaraj 6380 1 26 12:20 ? 00:30:32 /usr/lib/firefox-3.0.19/firefox
kamaraj 13107 12535 0 14:17 pts/0 00:00:00 grep fire
kamaraj@kamaraj-laptop:~/Desktop/testing$ pidof firefox
6380
Recent Comments