Netstat is a command line network statistics tool that is used for checking your network configuration and activity.
It displays both incoming and outgoing network connections, routing tables, network interface and network protocol statistics.
It is available on unix operating systems such as Linux, Solaris and BSD, and is available on Windows based operating systems such as Windows XP, Windows Vista, Windows 7, Windows 8 and Windows 10. Netstat is very useful tool for Network Administrator to troubleshoot network-related problems and determine network traffic performance.
Netstat is very important tool for network administrators for finding problems in the network and to determine the amount of traffic on the network as a performance measurement.
Netstat provides the following statistics:
The name of the protocol TCP or UDP.
The IP address of the local system with used port number. The name of the local system with name of the port.
The IP address and port number of the remote system with connected socket.
The possible states such as CLOSE_WAIT, ESTABLISHED, CLOSED, FIN_WAIT_1, FIN_WAIT_2, LISTEN, SYN_RECEIVED, SYN_SEND, LAST_ACK, and TIME_WAIT.
In this tutorial, we will learn some useful netstat command line tips and tricks.
Any Linux based operating system installed on your computer or server.
To list out all vailable switches of netstat command run the following command:
The above command is very useful to get the username/uid owning that particular process. It is also contains the username and inode of the process. This is a very useful command for network administrators.
Disable Reverse DNS Lookup for Faster Output
When you run the netstat command, it tries to find out the hostname of each ip address in the connection by doing a reverse dns lookup, this will slows down the output.
If you need to know only ip address then ignore the hostname lookup by running the following command:
You can create an email email filters through your cPanel control panel which is where you manage your hosting account. Email filters can be set up to target specific word, subject, from or to. Emails that are filtered out can be sent to a different email, deleted, delivered to a...
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...