Created
June 30, 2014 12:16
-
-
Save laurentsab/030aa28b8822ac22116f to your computer and use it in GitHub Desktop.
Search running process and kill'em all
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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