Follow these steps to obtain a sample output from the iotop command:
- Enter interactive mode with this command (exit by pressing q):
sudo iotop
- Obtain batch output for 10 seconds with this command:
sudo iotop -b -n 10
- Restrict batch output to only active processes, include a timestamp, and suppress the headers with this command:
sudo iotop -bot -qqq