command: netstat
purpose: Print network connections, routing tables, interface statistics,
             masquerade connections, and multicast memberships

examples:

1. To list all network ports

    $ netstat -a

2. To list all TCP ports

    $ netstat -at

3. To show statistics for all ports

    $ netstat -s

4. To list all UDP ports

    $ netstat -au

5. To list all listening connections

    $ netstat -l

6. To list all TCP listening ports

    $ netstat -lt

7. To list all UDP listening ports

    $ netstat -lu

8. To list all unix listening ports

    $ netstat -lx

9.  To display service name with pid

    $ netstat -tp

10. To display kernel IP routing

    $ netstat -r

11. To display which port a program is running

    $ netstat -ap | grep httpd

12. To display network interface transactions

     $ netstat -i


regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to