commit 20393fc44537d7eb0a1e1c1ef6fb8fa77696cd0f parent 597daea24c451dff220eb4f5e6e0a060702e3611 Author: dwrz <dwrz@dwrz.net> Date: Wed, 31 May 2023 01:10:40 +0000 Add net-io script Diffstat:
A | scripts/net-io | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/scripts/net-io b/scripts/net-io @@ -0,0 +1,5 @@ +#!/bin/sh + +netstat -b -w 1 -I em0 | \ + awk 'NR>3 { print $1/1024; print $2/1024; fflush }' | \ + ttyplot -2 -t "IN/OUT Bandwidth in KB/s" -u "KB/s" -c "#"