Skip to content

Instantly share code, notes, and snippets.

@sharkyak
Created July 24, 2020 16:54
Show Gist options
  • Save sharkyak/7d76931f9c090f75fdf9d98277033475 to your computer and use it in GitHub Desktop.
Save sharkyak/7d76931f9c090f75fdf9d98277033475 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