Linux系统中怎么安装iotop命令

发布时间:2016-12-01 19:39

Linux中的iotop命令主要用于显示硬盘IO,但该命令只存在于kernelv2.6.20之后的版本, 那么要如何安装iotop命令呢?下面小编就给大家介绍下如何在Linux上安装iotop命令。

iotop命令是界面风格类似top命令。这个命令只有在kernelv2.6.20及以后的版本中才有。python版本需要 python2.7及以上版本

官方的说明:

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

Linux系统中怎么安装iotop命令

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安装:

直接yum安装。

yum install iotop

在Ubuntu里安装命令是: sudo apt-get install iotop

安装好之后在终端输入:iotop就可以了

或者:

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

iotop使用说明:

可以用左右箭头操作,按 r 是相反方向,按 o 是动态切换

用法 iotop -参数

–version 查看版本信息的

-h, –help 查看帮助信息的

-o, –only 只显示在划硬盘的程序

-b, –batch 批量处理 用来记录日志的

-n NUM 设定循环几次

-d SEC, –delay=SEC 设定显示时间间隔

上面就是Linux下安装iotop命令的方法介绍了,如果你要使用iotop命令的话,可按照上面的命令进行安装,安装后可使用该命令进行硬盘IO的查看,你学会了吗?

Linux系统中怎么安装iotop命令的评论条评论