![]() This will add the “PID/Program Name” to the netstat output. Netstat -p option can be combined with any other netstat option. Display PID and program names in netstat output using netstat -p Show statistics for TCP (or) UDP ports using netstat -st (or) -su # netstat -st Show the statistics for each protocol Show statistics for all ports using netstat -s # netstat -s Unix 2 STREAM LISTENING 6306 private/bsmtp 3. Unix 2 STREAM LISTENING 6302 private/ifmail Unix 2 STREAM LISTENING 6203 public/cleanup Unix 2 STREAM LISTENING 6294 private/maildrop Udp 0 0 *:mdns *:* List only the listening UNIX Ports using netstat -lx # netstat -lxĪctive UNIX domain sockets (only servers) Tcp6 0 0 localhost:ipp :* LISTEN List only listening UDP Ports using netstat -lu # netstat -lu Udp 0 0 *:49119 *:* List only listening TCP Ports using netstat -lt # netstat -lt List Sockets which are in Listening State List only listening ports using netstat -l # netstat -lĪctive Internet connections (only servers) Tcp6 0 0 localhost:ipp :* LISTEN List all udp ports using netstat -au # netstat -au Unix 2 STREAM LISTENING 5140 /var/run/acpid.socket List all tcp ports using netstat -at # netstat -at Unix 2 STREAM LISTENING 6135 /tmp/.X11-unix/X0 Proto RefCnt Flags Type State I-Node Path Proto Recv-Q Send-Q Local Address Foreign Address StateĪctive UNIX domain sockets (servers and established) ![]() List All Ports (both listening and non listening ports) List all ports using netstat -a # netstat -a | moreĪctive Internet connections (servers and established) In this article, let us review 10 practical unix netstat command examples.ġ. ![]() Netstat command displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc.,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |