Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ufuk
Last active March 23, 2018 11:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ufuk/826b6b38797b46fa33c84c9b0d8c88a6 to your computer and use it in GitHub Desktop.
Save ufuk/826b6b38797b46fa33c84c9b0d8c88a6 to your computer and use it in GitHub Desktop.
Learn which process has allocated the TCP port (for example "8080")
lsof -i tcp:8080
# Example output:
# COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
# java 86935 ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment