pgrep & pkill.
pgrep and pkill make life easier when you need to find a process' id or kill it:
# This is the same as pidof.
$ pgrep pidgin
# This is a better sulotion for kill a process instead of find the pid and kill it.
$ pkill pidgin
Written by Chao YANG
Related protips
3 Responses
I used to use these command, but after switching to zsh, I can use autocompletion. so I can type 'kill (tab) (tab)' and choose by process name, or type 'kill firefox(tab)'
over 1 year ago
·
@gahtune
I heard of that zsh is more powerful than bash, but never try it. Maybe I need to start now ;)
over 1 year ago
·
@gahtune should try it and stop using pidof :)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Related Tags
#linux
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#