ip

Manage network

ip command in Linux

1.0 INTRODUCTION

The iproute2 package contains utilities for network and traffic control. The major commands in iproute2 package are the ip command for IPV4 and IPV6 configuration and tc for traffic control. These commands replace the older ifconfig and the route commands of the net-tools package.… Read more

netstat

1. netstat command

The netstat command in Linux provides network statistics and information about the networking subsystem. It gives information about network connections, routing tables and network interface statistics. For example,

$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 myhost.local:53744      mail.example.i:imaps    ESTABLISHED
tcp        0      0 myhost.local:36149      example.com:http        ESTABLISHED
tcp        0      0 myhost.local:57051      imap.example.n:imap2    ESTABLISHED
tcp        0      0 myhost.local:51209      mail.example.i:imaps    ESTABLISHED
tcp        0      0 myhost.local:35617      example.com:http        ESTABLISHED
tcp        0      0 myhost.local:51207      mail.example.i:imaps    ESTABLISHED
tcp        0      0 myhost.local:52281      r-198-51-100-12.tw:http ESTABLISHED
tcp        0      0 myhost.local:51208      mail.example.i:imaps    ESTABLISHED
tcp        0      0 myhost.local:52282      r-198-51-100-12.tw:http TIME_WAIT
...
Read more