Skip to main content
edited tags
Link
Kusalananda
  • 355.7k
  • 42
  • 735
  • 1.1k
Tweeted twitter.com/#!/StackUnix/status/194881055524798464
Source Link
Andrew
  • 17.8k
  • 35
  • 80
  • 82

Finding files that use the most disk space

Is it possible to list the largest files on my hard drive? I frequently use df -H to display my disk usage, but this only gives the percentage full, GBs remaining, etc.

I do a lot of data-intensive calculations, with a large number of small files and a very small number of very large files. Since most of my disk space used is in a very small number of files, it can be difficult to track down where these large files are. Deleting a 1 kB file does not free much space, but deleting a 100 GB file does. Is there any way to sort the files on the hard drive in terms of their size?

Thanks.