The iotop is a tool for monitoring I/O usage by each process via command line. This tool shows read and write speeds of a storage device, the percentage of time the process spent waiting for I/O, and other metrics.
This tutorial shows how to install iotop on Ubuntu 20.04.
Run the following command to update the package lists:
sudo apt update
sudo apt install -y iotop
When installation is completed, we can check version of iotop:
iotop command without any arguments to check I/O usage by each process:
Press CTRL+C to quit iotop.
If you decided to completely remove iotop, run the following command:
sudo apt purge --autoremove -y iotop