Thanks to Belostotsky Moshe for the info of iotop.
If you want to see what processes using CPU most then you use top command in Linux.
But if you want to see what processes do the highest number of read/write to the disk?
Well for this you have iotop. but it is not installed by default in Linux machine.
In RedHat based machine (redhat, centos, suse) you can easily install this with yum:
yum install iotop -y
In Debian based machine:
apt-get install iotp -y
in both case you need to use sudo if you don’t have root privileges.
in order to run it you just need to run:
And you get output like this:
In the header you see the total read and write, and below this just like in the normal top command, you see the different processes, and the number read bytes and write bytes (per second)