Skip to content

Instantly share code, notes, and snippets.

@DoZator
Last active July 13, 2023 11:45
Show Gist options
  • Save DoZator/647478bc80ca33b79b337c2f1402a578 to your computer and use it in GitHub Desktop.
Save DoZator/647478bc80ca33b79b337c2f1402a578 to your computer and use it in GitHub Desktop.
Port and listening sockets

This command shows the port and listening socket associated with the service for TCP protocol

    sudo netstat -vanp tcp

Find who uses port

    sudo netstat -vanp tcp | grep PORT_NUMBER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment