# Displaying disk io statistics

**URL:** <https://linux-tips.com/t/displaying-disk-io-statistics/195>\
**Category:** Shell\
**Created:** [July 22, 2008, 1:08pm UTC](https://linux-tips.com/t/displaying-disk-io-statistics/195 "2008-07-22T13:08:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![demirezen](https://linux-tips.com/letter_avatar_proxy/v4/letter/d/54ee81/32.png) [@demirezen](https://linux-tips.com/u/demirezen)\
**Post date:** [July 22, 2008, 1:08pm UTC](https://linux-tips.com/t/displaying-disk-io-statistics/195/1 "2008-07-22T13:08:11Z")

</div>

To display bytes written, bytes read statistics of all partitions of the disks available in the system you can use `iostat`.

Below is an example usage.

```
iostat -p -d 1

```

outputs will be like this:

```
Linux 2.6.8-2-k7 (hostname.com) 07/22/08
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
hda 10.03 18.39 179.74 438347774 4285350463
hda1 0.00 0.00 0.00 6258 5519
hda2 0.00 0.00 0.00 8 8
hda3 23.99 18.37 179.74 438026546 4285344936
```

---

<div class="post-metadata">

**Author:** ![Debuser](https://linux-tips.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@Debuser](https://linux-tips.com/u/Debuser)\
**Post date:** [January 20, 2016, 10:35pm UTC](https://linux-tips.com/t/displaying-disk-io-statistics/195/2 "2016-01-20T22:35:16Z")

</div>

You can also use feature rich alternative named **dstat**

Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. Dstat overcomes some of their limitations and adds some extra features, more counters and flexibility. Dstat is handy for monitoring systems during performance tuning tests, benchmarks or troubleshooting.

Dstat allows you to view all of your system resources in real-time, you can eg. compare disk utilization in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval).

```plaintext
$ dstat -a --fs

```

 ![](https://linux-tips.com/uploads/default/original/1X/1092db822469ba239874e476b2d2c0b017fdbc61.png)

See also: [man dstat](http://manpages.org/dstat)
