From 89290279a4fd2e18a6dcfff8def9bcd7ac93edb0 Mon Sep 17 00:00:00 2001 From: I-Man Ng Date: Tue, 14 May 2019 15:22:30 +0800 Subject: [PATCH] Add CPU IO and network monitoring on [system] --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c48de16..b0b53b0 100644 --- a/README.md +++ b/README.md @@ -1235,7 +1235,18 @@ xcowsay ## System [[back to top](#handy-bash-oneliner-commands)] -# Check if it's root running +##### Display CPU and IO statistics for devices and partitions. +```bash +# refresh every second +iostat -x -t 1 +``` + +##### Display bandwidth usage on an network interface (e.g. enp175s0f0) +```bash +iftop -i enp175s0f0 +``` + +##### Check if it's root running ```bash if [ "$EUID" -ne 0 ]; then echo "Please run this as root"