Created
January 21, 2019 20:01
-
-
Save spy86/87e81e16b17f12842ed7951dfcc31b7d to your computer and use it in GitHub Desktop.
For loop to kill all process
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
#!/bin/bash | |
for i in `ps -ax | grep httpd | awk '{print $1}'`; do kill -9 $i; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment