Skip to content

Instantly share code, notes, and snippets.

@d6rkaiz
Created April 28, 2017 18:28
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save d6rkaiz/5c121a3515176d9f5d758d4a3f7e33de to your computer and use it in GitHub Desktop.
netstat
# netstat -tpln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 647/sshd
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 22183/postgres
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1099/master
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 7779/apache2
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 7779/apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment