Networking Command Netstat
Learn how to use netstat
command
Learn Netstat
A basic
Linux
network command
NETSTAT
- Prints the network connection and routing tables.
- Like an CCTV monitor for every connection come in and go out from your machine.
- MiniManual
netstat -ant
:a
for all connection,n
for numeric,t
for all TCP connection//u
for the UDP connectionnetstat -rnec
:r
for the route information,n
numeric,e
extend,c
continous prints the resultnetstat -stuw
:s
for statistics summary,t/u
for tcp/udp,w
prints raw datanetstat -tulpn
: it shows the connectio with PID numberslsof -i
: it establish the connection