Skip to content

Instantly share code, notes, and snippets.

@Kerry350
Last active December 17, 2015 03:09
Show Gist options
  • Save Kerry350/5541144 to your computer and use it in GitHub Desktop.
Save Kerry350/5541144 to your computer and use it in GitHub Desktop.
*nix commands because, in all honesty, I forget a lot of these...
  • Find out what processes are running

ps aux

  • Kill one of those bad boys ^

kill -9 <PID>

  • Find out what's using a certain port

lsof -i :<port_number>

  • Connect to servers for quick testing etc

telnet 127.0.0.1 6379 <- This would connect to locally running Redis instance

  • Grep

find / | grep -i <thing>

  • Info on a certain process / service

ps auxww|grep [m]ysqld

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment