vnStat is a console-based network traffic monitor for Ubuntu and other Linux systems. It is useful for monitoring network traffic and bandwidth usage over time.
To install vnStat on Ubuntu, you can use the following steps:
sudo apt-get update
sudo apt-get install vnstat
To use vnStat, you can use the vnstat
command followed by a subcommand and any necessary options. For example, to display the current network traffic statistics, you can run the following command:
vnstat
To display the traffic statistics for a specific network interface, you can use the -i
option followed by the interface name. For example, to display the traffic statistics for the eth0
interface, you can run the following command:
vnstat -i eth0
You can also use vnStat to display the traffic statistics for a specific time period. For example, to display the traffic statistics for the current month, you can run the following command:
vnstat -m
For more information on using vnStat, you can refer to the vnStat documentation or run the vnstat --help
command to display a list of available options.