Linux/Unix Commands





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
LINUX / UNIX cmd
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Introduction
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in A
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in B
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in C
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in D
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in E
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in F
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in G
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in H
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in I
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in J
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in K
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in L
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in M
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in N
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in P
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in R
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in S
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in T
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in U
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in W
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in Y
Forums Ask your doubts
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example More about Linux
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Feedback
 





netstat Linux Commands


Tutorials Linux-commands

Topic

What is Linux netstat Command?



Explanation

netstat COMMAND:
      nestat command displays statistics information and current state of network connections, protocol, ports/ sockets and devices.

SYNTAX:
  The Syntax is
     netstat [options]

OPTIONS:
     
-s dispalys statics information about protocols.
-i dispalys statistics information about the network interface.
-r diplays routing table.
-c displays statistics information and updates every second.
-l displays information about all sockets that are in listening state.
-a displays information about all sockets that are in listening and non-listening state.
-p displays information about sockets with ProcessName and PID.



EXAMPLE:
     
  1. To get statistics of network connections:
    netstat
    The sample output of above command:
    Active Internet connections (w/o servers)
    ProtoRecv-QSend-QLocal AddressForeign Address State
    tcp00vhost:32803LocalHost:smtpTIME_WAIT
    tcp00vhost:32803google.com:httpESTABLISHED

    Where,
    Proto-Specifies the Protocol used for connection.
    Recv-Q-Specifies the Number of Bytes which are not recevied.
    Send-Q-Specifies the Number of Bytes not send to destination.
    Local Address-Specifies the local or source address and port.
    Foreign Address-Specifies the destination address and port.
    State-Specifies the current state of conection to the socket.
    • ESTABLISHED - Connection is Established.
    • TIME_WAIT - Waiting to receive packets.
    • LISTEN - Listening to establish connection.
  2. To Get Statistics of Protocols:
    netstat -s
    The Sample output of above command:
    IP:
    5193 incoming packets delivered
    4813 requests sent out
    Tcp:
    4033 segments received
    4813 segments send out
    Icmp:
    41 ICMP messages received
    178 ICMP messages sent
  3. To Get statistics of Network Interface:
    netstat -i
    The sample output of above command:

    Kernel Interface table
    IfaceMTUMetRX-OKRX-ERRTX-OKTX-ERRFlg
    eth0 1500013080 13450BMRU
    This is the statistics information of Ethernet Card[eth0].




A Note

Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


Other Links

web hosting

 

Free Hosting

Top Hosting Companies