Skip to content

okturan/MacNetStatsTerm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

 __  __            _   _      _   ____  _        _       _____
|  \/  | __ _  ___| \ | | ___| |_/ ___|| |_ __ _| |_ ___|_   _|__ _ __ _ __ ___
| |\/| |/ _` |/ __|  \| |/ _ \ __\___ \| __/ _` | __/ __|| |/ _ \ '__| '_ ` _ \
| |  | | (_| | (__| |\  |  __/ |_ ___) | || (_| | |_\__ \| |  __/ |  | | | | | |
|_|  |_|\__,_|\___|_| \_|\___|\__|____/ \__\__,_|\__|___/|_|\___|_|  |_| |_| |_|

Terminal network monitor for macOS. Real-time interface stats with minimal overhead.

Network Monitor

Requirements:

  • macOS (uses netstat/route)
  • bash + bc

Usage:

$ ./netmon.sh

Auto-detects active interface. Updates every second. Scales KB/s >> MB/s automatically. Press ^C to exit cleanly.

What it does:

Polls netstat byte counters at 1sec intervals Calculates transfer deltas (rx/tx) Renders to alternate screen buffer (no terminal pollution) Traps signals for proper cleanup

Implementation:

Pure bash. No external dependencies beyond standard unix tools. Uses tput for screen control and bc for floating point math. Alternate screen buffer keeps your scrollback clean.

About

A macOS-specific terminal application for monitoring network statistics in real-time.

Resources

Stars

Watchers

Forks

Languages