Programs to show detailed disk usage?

Is there a Linux command to monitor read and writes over a period of time? with what files were accessed and how much data was written.

51 points · 6 comments · view on lemmy.world

6 Comments

Flanhare@lemmy.world · 16 pts · 2y

iotop maybe?

lemann@lemmy.one · 13 pts · 2y

Iotop, lsof

They won't do exactly what you want but will get you partway there

thelastknowngod@lemm.ee · 5 pts · 2y

For read/write ops or disk usage over time, I would usually use a monitoring system like Prometheus and Grafana.

When you start talking about what specific files are accessed and when, that's usually up to an intrusion detection system (or IDS). I don't have good recommendations for that unfortunately.

d3Xt3r@lemmy.world · 5 pts · 2y

sysdig can monitor and display file IO usage.

See this page for some examples: https://github.com/draios/sysdig/wiki/Sysdig%20Examples#disk-io

lnxtx@feddit.nl · 4 pts · 2y

inotify-tools:

inotifywait -r -m desired/directory
ono@lemmy.ca · 4 pts · 2y

Something like iotop -Pao (real-time) or iotop -obd (batch) ought to do the job. I don't know if it includes writes to non-physical devices like tmpfs.

Some other commands you might find interesting: iosnoop, fatrace, pidstat, blktrace.