tldr/pages/linux/iostat.md

28 lines
528 B
Markdown
Raw Normal View History

2014-08-04 05:59:39 +04:00
# iostat
> Report statistics for devices and partitions.
2014-08-04 05:59:39 +04:00
- Display a report of CPU and disk statistics since system startup:
2014-08-04 05:59:39 +04:00
`iostat`
2014-08-04 05:59:39 +04:00
2016-07-11 18:37:30 +03:00
- Display a report of CPU and disk statistics with units converted to megabytes:
2016-07-11 08:08:53 +03:00
`iostat -m`
- Display CPU statistics:
2014-08-04 05:59:39 +04:00
`iostat -c`
- Display disk statistics with disk names (including LVM):
`iostat -N`
- Display extended disk statistics with disk names for device "sda":
`iostat -xN {{sda}}`
- Display incremental reports of CPU and disk statistics every 2 seconds:
2014-08-04 05:59:39 +04:00
2016-07-11 08:08:53 +03:00
`iostat {{2}}`