Every process in linux has a unique process id, which can be used to control the process.
To find the process id from the process name we can use the command pidof
For e.g.
To find the process id from the process name we can use the command pidof
For e.g.
This will also do the job
ReplyDelete$ pgrep -f firefox
15223
15224
15225
15226
15227
15228
pkill can kill all the matching processes instead of showing them
Just my 0,02
yes, pgrep is also a very useful command.
DeleteThanks for the info.