Skip to content

Instantly share code, notes, and snippets.

@aamsur-mkt
Created November 6, 2019 07:34
Show Gist options
  • Save aamsur-mkt/b60dddee50952e5ed0270806a3edacea to your computer and use it in GitHub Desktop.
Save aamsur-mkt/b60dddee50952e5ed0270806a3edacea to your computer and use it in GitHub Desktop.
Show Listening Port Ubuntu
#netstat -nlpt
=====================
example output
=====================
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:6379 0.0.0.0:* LISTEN 1863/redis-server 0
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1331/nginx: master
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 596/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1165/sshd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1493/node /usr/bin/
tcp6 0 0 :::80 :::* LISTEN 1331/nginx: master
tcp6 0 0 :::22 :::* LISTEN 1165/sshd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment