--- a/stat.rst Tue Jan 12 00:09:16 2016 +0200
+++ b/stat.rst Tue Jan 12 02:39:43 2016 +0200
@@ -268,6 +268,19 @@
$ sudo apt-get install netdiag
$ sudo trafshow
+How many packets come through interface, how many errors, MTU size::
+
+ $ netstat -i
+
+Detailed information about interface::
+
+ $ netstat -ie
+
+Routing table::
+
+ $ ip route show
+ $ netstat -r
+
Network status.
===============
::
@@ -324,12 +337,16 @@
Linux.
------
-::
+
+``[46]`` - IPV4 or IPV6, ``protocol`` - tcp, udp::
$ lsof -i[46][protocol][@{hostname|hostaddr}][:{service|port}]
- $ netstat -p -l | grep $PORT
+
+::
-where ``[46]`` - IPV4 or IPV6, ``protocol`` - tcp, udp.
+ $ netstat -p -l | grep $PORT
+ $ netstat -p -l -t | grep $PORT
+ $ netstat -p -l -u | grep $PORT
::