I have a problem. I admit it. I have a problem deleting files. In the “good times”—vi&., when I have gigabytes to spare on my hard drive—I simply don’t bother deleting temporary files. That video I encoded/compressed to MPEG? Sure, I’ll keep the raw original! Why not? Just in case I ever need to re-encode it at a higher bitrate, you see.
Inevitably, I run low on disk space months later, at which point I’ve forgotten where all of those pesky large files are living.
Enter my script, which I simply call
script will conveniently print the $n$ biggest files that are rooted
at a given directory. Here’s an example:
It is available on GitHub, here: