Skip to content

Instantly share code, notes, and snippets.

@whomwah
Last active April 11, 2019 07:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save whomwah/6068816 to your computer and use it in GitHub Desktop.
Save whomwah/6068816 to your computer and use it in GitHub Desktop.
[lsof] Check if port is being used #bash
# Run this command
lsof -i :3000
~/_dev/kyan/project(kyan_rails_3_2_13_upgrade) $ lsof -i :3000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ruby 8511 duncan 15u IPv4 0xf8ff7ea926138439 0t0 TCP *:hbci (LISTEN)
# kill the rogue PID
kill 8511
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment