I'm trying to find out in a Linux terminal on my Synology NAS drive, how to see how much space is taken up by directories labeled as eadir. For those not familiar, these are basically metadata files that get used in media applications, web apps, etc. on the front-end of the NAS drive.

so far I navigated to my root /volume1/ directory and have tried:

du -h -> Took a very long time, not sorted by file size.

du -h > output.txt -> This actually put all the information in a file, still not sorted by file size.

du -h > output.txt | sort -> sorted the files purely numerically, so a 10GB file would show up before a 20KB file just because numerically 10 is less than 20.

What other ways can I try to find out the largest files on my drive?


ncdu does exactly what you want and a lot more. You can even browse folders and also delete files directly.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.