How to use vnStat and iftop to monitor data consumption within a VM

In the generation of cloud computing, virtual machines (VMs) have become very common, while the usage of physical machines has started to gradually decrease. This post will introduce the tools, ‘vnStat’ and ‘iftop,’ which can be used to monitor data consumption in a VM. First, I am creating a machine with the following resources: 20 GHz CPU 16 GB RAM …