We earn commission when you buy through affiliate links.
This does not influence our reviews or recommendations.Learn more.
Learn what netstat command and some of the real-time examples are.
If you typenetstat -help, you will get the following usage guidelines.
Let me show you some of the examples of the command.
Established Connection
If you are looking for all established connections from the server.
Or, you’ve got the option to use-largument to show all the listening sockets.
Take advantage ofgrepto filter the results.
Kernel routing information
Having a routing issue?
or, connectivity is malfunctioning as expected due to connection is traveling through a different route?
Quickly check the routing table.
PID used by Port Number
Very handy to troubleshoot port conflict issue.
And, it’s possible for you to see the PID 3937 is using that port.
List of online grid interfaces
Having multiple ethernet interfaces?
or not sure and want to find out?
Continuous Listening
An excellent option when troubleshooting services crash related issues.
Lets say an software is crashing randomly every few minutes.
But, not sure when exactly.
you’re free to use-cargument which will continuously show the results.
When it stops updating, then you know its crashed.
If you are looking to learn more about Linux administration, then check out thisUdemy course.