Introduction of the command

The iotop command is used to check disk I/O usage. Iotop has a UI similar to top, and displays PID, user, I/O, and process information.

[root@centos7 ~]# iotop
-bash: iotop: command not found
[root@centos7 ~]# yum install iotop -y
Copy the code

Syntax format

iotop [OPTIONS]
Copy the code

Option to show

-o # Displays only processes with I/O operations. -b # Displays only processes with I/O operations. -n NUM # Displays NUM times, mainly in non-interactive modeCopy the code

Iotop shortcuts

R # Change the sorting order o # show only processes with IO output P # Change the display mode of processes/threads A # show cumulative usage Q # ExitCopy the code

Application, for example,

[root@centos7 ~]# iotop
Copy the code

More parameters to use interested readers can view their own operation.

Learn one Linux command per day (98) : crontab

Learn a Linux command every day (99) : nohup