To check network bandwidth via command line (cli) Install bmon and run bmon via Terminal or make a script for bmon. An another tool is cbm which is more simple, but it is not available ia all distros.