Created
November 6, 2019 07:34
-
-
Save aamsur-mkt/b60dddee50952e5ed0270806a3edacea to your computer and use it in GitHub Desktop.
Show Listening Port Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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