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.

16 points

iotop maybe?

permalink
report
reply

Iotop, lsof

They wonโ€™t do exactly what you want but will get you partway there

permalink
report
reply
5 points

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.

permalink
report
reply
5 points
*

sysdig can monitor and display file IO usage.

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

permalink
report
reply
4 points

inotify-tools:

inotifywait -r -m desired/directory
permalink
report
reply

Linux

!linux@lemmy.world

Create post

Welcome to c/linux!

Welcome to our thriving Linux community! Whether youโ€™re a seasoned Linux enthusiast or just starting your journey, weโ€™re excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, letโ€™s dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

Community stats

  • 1.2K

    Monthly active users

  • 557

    Posts

  • 4K

    Comments

Community moderators