Skip to content

Instantly share code, notes, and snippets.

@spy86
Created January 21, 2019 20:01
Show Gist options
  • Save spy86/87e81e16b17f12842ed7951dfcc31b7d to your computer and use it in GitHub Desktop.
Save spy86/87e81e16b17f12842ed7951dfcc31b7d to your computer and use it in GitHub Desktop.
For loop to kill all process
#!/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