mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-10-10 16:33:23 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -5,19 +5,19 @@
|
||||
<p>iotop使用Python语言编写而成,要求Python2.5(及以上版本)和Linux kernel2.6.20(及以上版本)。iotop提供有源代码及rpm包,可从其官方主页下载。</p>
|
||||
<h3 id="安装">安装</h3>
|
||||
<p><strong>Ubuntu</strong></p>
|
||||
<pre><code>apt-get install iotop</code></pre>
|
||||
<pre><code class="language-bash">apt-get install iotop</code></pre>
|
||||
<p><strong>CentOS</strong></p>
|
||||
<pre><code>yum install iotop</code></pre>
|
||||
<pre><code class="language-bash">yum install iotop</code></pre>
|
||||
<p><strong>编译安装</strong></p>
|
||||
<pre><code>wget http://guichaz.free.fr/iotop/files/iotop-0.4.4.tar.gz
|
||||
<pre><code class="language-bash">wget http://guichaz.free.fr/iotop/files/iotop-0.4.4.tar.gz
|
||||
tar zxf iotop-0.4.4.tar.gz
|
||||
python setup.py build
|
||||
python setup.py install
|
||||
</code></pre>
|
||||
<h3 id="语法">语法</h3>
|
||||
<pre><code>iotop(选项)</code></pre>
|
||||
<pre><code class="language-bash">iotop(选项)</code></pre>
|
||||
<h3 id="选项">选项</h3>
|
||||
<pre><code>-o:只显示有io操作的进程
|
||||
<pre><code class="language-bash">-o:只显示有io操作的进程
|
||||
-b:批量显示,无交互,主要用作记录到文件。
|
||||
-n NUM:显示NUM次,主要用于非交互式模式。
|
||||
-d SEC:间隔SEC秒显示一次。
|
||||
@@ -34,7 +34,7 @@ python setup.py install
|
||||
</ol>
|
||||
<h3 id="实例">实例</h3>
|
||||
<p>直接执行iotop就可以看到效果了:</p>
|
||||
<pre><code>Total DISK read: 0.00 B/s | Total DISK write: 0.00 B/s
|
||||
<pre><code class="language-bash">Total DISK read: 0.00 B/s | Total DISK write: 0.00 B/s
|
||||
TID PRIO USER DISK READ DISK WRITE SWAPIN IO> command
|
||||
1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % init [3]
|
||||
2 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kthreadd]
|
||||
|
Reference in New Issue
Block a user