Thanks for posting this. My knowledge of "sort" predates this switch.
I wish there was a common command-line tool for "where did all my space go?" It could look at file and directory sizes and modification times, and list the most likely suspects.
I wish there was a common command-line tool for "where did all my space go?" It could look at file and directory sizes and modification times, and list the most likely suspects.
du -ha ~ | sort -hr | head -n 12
-a is the important bit, it recurses down through every directory.
Replace ~ with / or whatever directory you want.
-a, --all
write counts for all files, not just directories