Skip to content

Instantly share code, notes, and snippets.

@mileszs
Created February 17, 2009 21:32
Show Gist options
  • Select an option

  • Save mileszs/65992 to your computer and use it in GitHub Desktop.

Select an option

Save mileszs/65992 to your computer and use it in GitHub Desktop.
# List all listening ports together with the PID of the associated process
sudo netstat -plunt
# -p Tell me the name of the program and it's PID
# -l that is listening
# -u on a UDP port.
# -n Give me numeric IP addresses (don't resolve them)
# -t oh, also TCP ports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment