iotop
Monitor disk I/O usage by process
TLDR
Start top-like I/O monitor
Show only processes or threads actually doing I/O
Show I/O usage in non-interactive mode
Show only I/O usage of processes (default is to show all threads)
Show I/O usage of given PID(s)
Show I/O usage of a given user
Show accumulated I/O instead of bandwidth
SYNOPSIS
iotop [options]
PARAMETERS
-o, --only
Only show processes that are actually doing I/O.
-b, --batch
Run in non-interactive mode. Useful for logging output to a file.
-n NUM, --iter=NUM
Number of iterations before quitting. Default is until interrupted.
-d SEC, --delay=SEC
Seconds between iterations. The minimum allowed value is 0.1.
-p PID, --pid=PID
Only show a particular process.
-u USER, --user=USER
Only show processes owned by a particular user.
-P, --processes
Show I/O for each process instead of aggregated threads.
-k, --kilobytes
Use kilobytes instead of a human friendly unit.
-q, --quiet
Suppress some header lines (implies --batch).
-qq
Suppress all header lines.
-t, --time
Add a timestamp on each line.
-C, --cumulative
Show cumulative I/O instead of bandwidth.
-h, --help
Show help message and exit.
-v, --version
Show version number and exit.