Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • This command did the trick to find a hidden folder that seemed to be increasing in size over time. Thanks! Commented Jun 20, 2013 at 2:24
  • Is this in bytes? Commented Sep 17, 2014 at 0:12
  • By default, on my system, 'du -S' gives a nice human readable output. You get a plain number of bytes for small files, then a number with a 'KB' or 'MB' suffix for bigger files. Commented Sep 17, 2014 at 8:48
  • 1
    @Siddhartha If you add -h, it will likely change the effect of the sort -nr command - meaning the sort will no longer work, and then the head command will also no longer work Commented Dec 4, 2017 at 13:00
  • 1
    On Ubuntu, I need to use -h to du for human readable numbers, as well as sort -h for human-numeric sort. The list is sorted in reverse, so either use tail or change order. Commented Aug 30, 2018 at 8:41