watch -n 1 'iostat -xmd 1 2'

I/O activity on a machine

Shows a constantly updating display of disk IO activity. Two sections are in the output. The first is the IO activity since the machine was booted, the second section is the IO activity in the last second
Sample Output
Every 1.0s: iostat -xmd 1 2                                                                          Sat Jul  6 02:05:14 2013

Linux 2.6.32-358.el6.x86_64 (webzv01.l.test.lan)     07/06/2013      _x86_64_

Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await  svctm  %util
vda               0.04     9.82    0.25    5.88     0.01     0.06    21.31     0.01    2.38   0.38   0.23
vda1              0.00     0.00    0.00    0.00     0.00     0.00    47.77     0.00   14.76   4.51   0.00
vda2              0.04     0.06    0.01    0.00     0.00     0.00    81.50     0.00    5.89   4.84   0.01
vda3              0.00     6.50    0.23    4.15     0.01     0.04    22.06     0.01    2.23   0.43   0.19
vda4              0.00     0.00    0.00    0.00     0.00     0.00     2.00     0.00   64.50  64.50   0.00
vda5              0.00     3.26    0.01    0.85     0.00     0.02    38.49     0.00    5.41   0.41   0.03
vdb               0.02     7.77    2.08   28.28     0.04     0.97    68.61     0.35   11.65   0.27   0.83
vdb1              0.02     7.77    2.08   28.28     0.04     0.97    68.61     0.35   11.65   0.27   0.83

Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await  svctm  %util
vda               0.00    19.00    0.00    5.00     0.00     0.09    38.40     0.00    0.80   0.40   0.20
vda1              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
vda2              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
vda3              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
vda4              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
vda5              0.00    19.00    0.00    5.00     0.00     0.09    38.40     0.00    0.80   0.40   0.20
vdb               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
vdb1              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00

0
2013-07-06 08:07:32

These Might Interest You

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: