Netstat Command:
Netstat is basically a command line utility which can be utilized to the list out for all the network connection in a system. It mainly lists out all the UDP, TCP socket connections and also the Unix socket connection. Apart from these sockets it can also easily list the listening sockets that are actually waiting for the incoming connections, so it would be good if you check that the open port 80 us running on the system or not. It is a good feature, it makes this a very useful tool for the network and the system administrators. Below is a fast and quick introduction to netstat from some of the main pages.
Uses of Netstat Command:
1. Listing complete listening ports of the UDP and the TCP connections:
This is the first and the most simple command is to just list out all the current connections.
Syntax:
netstat - l
2. Listing the TCP connection ports:
It mainly displays the Transmission Control Protocol (TCP) port connections by just using the given command
Syntax:
netstat-at.
3. Listing the UDP connection ports:
Third lists only the User Datagram Protocol (UDP) port connection only using the given command.
Syntax:
netstat-au.
4. Listing all the Listening connections:
It mainly lists all the active listening ports with the given command.
Syntax:
netsat - l.
5. Listing all the main TCP listening ports:
It lists all the active TCP listening ports via using the given command.
Syntax:
netstat - lt
6. Listing complete UDP listening ports:
It mainly lists out all the UDP listening ports by the use of given command.
Syntax:
netstat -Iu
7. Listing all the UNIX listening ports:
It lists out all the active listening UNIX ports by using the given command.
Syntax:
netstat -lx
8. Showing the statistics by the protocol:
It displays mainly the protocol. Here you can also uses parameter to specify some set of the protocols.
Syntax:
netstat -s
9. Showing the statistics by the TCP protocol:
It mainly shows the statistics of the TCP protocols by simply using the given command.
Syntax:
netstat -st.
10. Showing the statistics by the UDP protocol:
It displays the UDP protocol statistics, which are used by the connection. you can use the given command.
Syntax:
netstat -su.
Netstat is basically a command line utility which can be utilized to the list out for all the network connection in a system. It mainly lists out all the UDP, TCP socket connections and also the Unix socket connection. Apart from these sockets it can also easily list the listening sockets that are actually waiting for the incoming connections, so it would be good if you check that the open port 80 us running on the system or not. It is a good feature, it makes this a very useful tool for the network and the system administrators. Below is a fast and quick introduction to netstat from some of the main pages.
Uses of Netstat Command:
1. Listing complete listening ports of the UDP and the TCP connections:
This is the first and the most simple command is to just list out all the current connections.
Syntax:
netstat - l
2. Listing the TCP connection ports:
It mainly displays the Transmission Control Protocol (TCP) port connections by just using the given command
Syntax:
netstat-at.
3. Listing the UDP connection ports:
Third lists only the User Datagram Protocol (UDP) port connection only using the given command.
Syntax:
netstat-au.
4. Listing all the Listening connections:
It mainly lists all the active listening ports with the given command.
Syntax:
netsat - l.
5. Listing all the main TCP listening ports:
It lists all the active TCP listening ports via using the given command.
Syntax:
netstat - lt
6. Listing complete UDP listening ports:
It mainly lists out all the UDP listening ports by the use of given command.
Syntax:
netstat -Iu
7. Listing all the UNIX listening ports:
It lists out all the active listening UNIX ports by using the given command.
Syntax:
netstat -lx
8. Showing the statistics by the protocol:
It displays mainly the protocol. Here you can also uses parameter to specify some set of the protocols.
Syntax:
netstat -s
9. Showing the statistics by the TCP protocol:
It mainly shows the statistics of the TCP protocols by simply using the given command.
Syntax:
netstat -st.
10. Showing the statistics by the UDP protocol:
It displays the UDP protocol statistics, which are used by the connection. you can use the given command.
Syntax:
netstat -su.