UNIX BLOG
Blog for NIX system based administrators
How to find out what programs are listening on ports
The following code will show how to see all the programs that are listening:
netstat -tulpn
will show what programs are listening on ports.
Example:
root@myhost:~# netstat -tulpn Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2393/mysqld
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 13154/apache2
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 23635/nginx
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2462/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2438/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2888/exim4
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 23635/nginx
tcp 0 0 45.55.168.61:10083 0.0.0.0:* LISTEN 22058/vsftpd
tcp6 0 0 :::22 :::* LISTEN 2438/sshd
tcp6 0 0 ::1:25 :::* LISTEN 2888/exim4 root@myhost:~#
Articles
- Installation of Web-Scripts (4)
- Linux Administration (17)
- php coding (1)
- Xen administration (4)
Archives
- August 2015 (1)
- April 2015 (1)
- October 2014 (1)
- August 2013 (1)
- November 2012 (2)
- October 2012 (6)
- September 2012 (1)
- April 2012 (1)
- March 2012 (9)
Blogroll
- CyberSSL – best SSL products shop SSL Certificates shop and other security products and services.
Leave a Reply