Network IO top
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 13 Jan 2016 16:05:10 +0200
changeset 1872 da4694ae72cb
parent 1871 7b9c756a5b8c
child 1873 d64682ab74a2
Network IO top
stat.rst
--- a/stat.rst	Wed Jan 13 00:28:19 2016 +0200
+++ b/stat.rst	Wed Jan 13 16:05:10 2016 +0200
@@ -36,7 +36,14 @@
 
 View detail process info::
 
-  $ ps -f <id>
+  $ ps -f $PID
+  $ cat /proc/$PID/cmdline
+  $ cat /proc/$PID/environ
+  $ cat /proc/$PID/status
+
+View process tree::
+
+  $ pstree
 
 Kill process::
 
@@ -280,8 +287,19 @@
   $ traceroute $IP
   $ mtr $IP
   $ sudo bmon
+
+Network IO top::
+
+  $ sudo iftop
   $ sudo iftop -i wlan0
 
+Various network stats::
+
+  $ sudo iptraf
+
+Use ``Shift + S`` to show source port numbers, ``Shift + S`` to show destination
+port numbers in ``iftop``.
+
 How many packets come through interface (size/type/source/destination)::
 
   $ sudo apt-get install netdiag