sudo kill -9 $(pgrep yourmom)
run pgrep and pass it a program name, it will return all the pids in a list
$() just evaluates the expression in the () so instead of kill -9 pgrep yourmom as command arguemtns to kill, you're passing it the output of pgrep which is the pids.
-9 (kill signal) just murders the shit out of a running program.
you're gay
EDIT:
An even better way pkill name
sudo kill -9 $(pgrep yourmom)
run pgrep and pass it a program name, it will return all the pids in a list
$() just evaluates the expression in the () so instead of `kill -9 pgrep yourmom` as command arguemtns to `kill`, you're passing it the output of pgrep which is the pids.
-9 (kill signal) just murders the shit out of a running program.
you're gay
# EDIT:
An even better way `pkill name`
(post is archived)