How to install the iotop command on a Linux system

  
                

The iotop command in Linux is mainly used to display the hard disk IO, but the command only exists in the version after kernelv2.6.20, then how to install the iotop command? The following small series will introduce you how to install the iotop command on Linux.

The iotop command is similar to the top command in interface style. This command is only available in kernelv2.6.20 and later. The python version requires python 2.7 and above

Official description:

Linux has always been able to show how much I/O was going on (the bi and bo columns of the vmstat 1 Command).

Iotop is a Python program with a top like UI used to show of behalf of which process is the I/O going on. It requires Python ≥ 2.7 and a Linux kernel ≥ 2.6.20 with the TASK_DELAY_ACCT CONFIG_TASKSTATS, TASK_IO_ACCOUNTING and CONFIG_VM_EVENT_COUNTERS options on.

iotop installation:

Direct yum installation.

yum install iotop

The command to install in Ubuntu is: sudo apt-get install iotop

After installation, type in the terminal: iotop will be

or:

git clone git: //repo.or.cz/iotop.git

iotop instructions:

may be operated with the left and right arrows, press r is the opposite direction, press o to switch dynamically

Usage iotop -parameters

–version View version information

-h, –help View help information < Br>

-o, –only shows only the program that draws the hard disk

-b, –batch Batch processing

-n NUM for logging Times

-d SEC, –delay=SEC Setting the display interval

The above is the method of installing the iotop command under Linux. If you want to use the iotop command, you can follow the above. The command is installed. After installation, you can use this command to view the hard disk IO. Have you learned it?

Copyright © Windows knowledge All Rights Reserved