Linux Inside next up previous contents index
Next: Checking the ARP Tables Up: Checking with netstat Previous: Displaying Interface Statistics

Displaying Connections

           

netstat supports a set of options to display active or passive sockets. The options -t, -u, -w, and -x show active TCP, UDP, RAW, or UNIX socket connections. If you provide the -a flag in addition, sockets that are waiting for a connection (i.e. listening) are displayed as well. This will give you a list of all servers that are currently running on your system.

Invoking netstat -ta on vlager produces

tscreen3049

This shows most servers simply waiting for an incoming connection. However, the fourth line shows an incoming SMTP connection from vstout, and the sixth line tells you there is an outgoing telnet connection to vbardolino.gif

Using the -a flag all by itself will display all sockets from all families.

 



Bjorn Isaksson
Fri May 10 05:54:29 MET DST 1996