Monitoring bash Beginner New

Disk IO Monitor

Monitor per-device disk read/write throughput in real time using iostat.

bash
#!/bin/bash
INTERVAL=${1:-2}
DEVICE=${2:-sda}
echo "Monitoring $DEVICE I/O (Ctrl+C to stop)"
iostat -d -x $DEVICE $INTERVAL | awk '/^$/ {next} /Device/ {print "
" $0; next} {print}'

Prerequisites

  • sysstat (iostat)
  • awk

Pro Tips

  • → Use iotop for per-process disk activity.

Was this module useful?

Share your experience — it helps the team improve.

Leave Feedback

Commercial Licensing

Acquire a production access token or template license for enterprise deployment.

Module Info

Language
bash
Level
Beginner
Read time
1 min
Published
Sep 2026
License
Commercial License

Newsletter

New modules every week, directly to your inbox.