Skip to content

Instantly share code, notes, and snippets.

@wilornel
Created September 18, 2012 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilornel/3740888 to your computer and use it in GitHub Desktop.
Save wilornel/3740888 to your computer and use it in GitHub Desktop.
PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1161/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1232/apache2
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2772/pure-ftpd (SER
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 657/sshd
tcp6 0 0 :::21 :::* LISTEN 2772/pure-ftpd (SER
tcp6 0 0 :::22 :::* LISTEN 657/sshd
root@Slack-server:~# netstat -p tcp
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 52 192.168.0.108:ssh 192.168.0.100:58750 ESTABLISHED 2794/0
tcp 0 0 192.168.0.108:http dsl-216-221-61-11:52905 TIME_WAIT -
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 7 [ ] DGRAM 7592 465/rsyslogd /dev/log
unix 2 [ ] DGRAM 11625 2794/0
unix 2 [ ] DGRAM 11235 2772/pure-ftpd (SER
unix 2 [ ] DGRAM 9541 1281/login
unix 3 [ ] STREAM CONNECTED 8968 467/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 8967 1163/whoopsie
unix 2 [ ] DGRAM 8905 1138/acpid
unix 3 [ ] STREAM CONNECTED 7638 1/init @/com/ubuntu/upstart
unix 3 [ ] STREAM CONNECTED 7635 497/upstart-socket-
unix 2 [ ] DGRAM 7610 599/dhclient3
unix 3 [ ] STREAM CONNECTED 7579 467/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 7578 1/init
unix 3 [ ] STREAM CONNECTED 7571 467/dbus-daemon
unix 3 [ ] STREAM CONNECTED 7570 467/dbus-daemon
unix 3 [ ] DGRAM 6904 303/udevd
unix 3 [ ] DGRAM 6903 303/udevd
unix 3 [ ] STREAM CONNECTED 6825 1/init @/com/ubuntu/upstart
unix 3 [ ] STREAM CONNECTED 6824 300/upstart-udev-br
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment