# HG changeset patch # User Oleksandr Gavenko # Date 1452693910 -7200 # Node ID da4694ae72cb4ae1bfecb8ef68966e174c66125f # Parent 7b9c756a5b8cbfbf6fbf3256dbf9ec8c0e6518e9 Network IO top diff -r 7b9c756a5b8c -r da4694ae72cb 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 + $ 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