Skip to content

Instantly share code, notes, and snippets.

@laurentsab
Created June 30, 2014 12:16
Show Gist options
  • Save laurentsab/030aa28b8822ac22116f to your computer and use it in GitHub Desktop.
Save laurentsab/030aa28b8822ac22116f to your computer and use it in GitHub Desktop.
Search running process and kill'em all
# search apache running process
$ ps fax | grep apache
4818 pts/0 S+ 0:00 | | | \_ grep --color=auto apache
1541 ? Ss 0:00 /usr/sbin/apache2 -k start
2817 ? S 0:03 \_ /usr/sbin/apache2 -k start
....
# kill process
$ sudo kill 1541
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment