You can use find
, stat
, sort
, and tail
to do that.
find . -exec stat --format="%X" + | sort -n | tail -n 10
However, you might consider using watch
and du
. watch
will run a command periodically (every 2sec by default). And du
shows disk usage. This command will show you the disk usage of every file and folder in the current directory, and the output will continuously be refreshed.
watch "du -s *"
You can start at root and see which folder is increasing the quickest, then progress down the folder hierarchy until you find the culprit(s).
If you're in a folder that has too many files to see on the screen at once, you can limit it by segregating the files like du -s [a-h]*
. Also, this won't show hidden files; for that you need .*
or .[a-h]*
, etc.