Skip to content

Instantly share code, notes, and snippets.

@arliber
Created April 2, 2020 08:38
Show Gist options
  • Save arliber/b8353986e5047ef2f0a6bc660ea99c4c to your computer and use it in GitHub Desktop.
Save arliber/b8353986e5047ef2f0a6bc660ea99c4c to your computer and use it in GitHub Desktop.
Unix #snippet #cli

List all processes including the name firefox

pgrep -f firefox

Kill all processes including the name firefox

pkill -f firefox

Load test using ab

ab - Apache HTTP server benchmarking tool

ab -n15 -s 300 -c2 -H
"x-access-token:XXXXXXX" -H "organization-id:16" -H
"Content-Type:application/json" -v 2
http://api.com
ab -n15 -s 300 -c2 -H
"x-access-token:XXXXX" -H "Content-Type:application/json" -v 2
https://api.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment