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
  • Was looking for something like this. Thank you Commented Apr 3, 2020 at 11:35
  • 1
    If you remove the -s it will "drill down" for you and save a lot of time. Commented May 26, 2020 at 23:05
  • @OrangeDog that will list every file recursively, which makes it a bit hard to see which directories are contributing the most. You normally don't have to go too many directory levels deep until you find the culprit in my experience (so it doesn't take long). Commented May 28, 2020 at 0:44
  • @JonoB that's what the | sort is for. You get exactly the information as manually repeating it at every step, except much quicker. Commented May 28, 2020 at 9:24
  • @OrangeDog each leaf directory will be listed when -s is not specified. With -s, on /var: 34106 folders 3643 db 124 log 32 run 19 spool 11 rpc 7 at <snip> ``` Without: 34110 folders 34014 folders/s0 34013 folders/s0/y6dlxn_x0wsfb5yv_fpglzlc0000gn 28592 folders/s0/y6dlxn_x0wsfb5yv_fpglzlc0000gn/T 17369 folders/s0/y6dlxn_x0wsfb5yv_fpglzlc0000gn/T/broccoli- 10284w53i1ho5mEPf <snip> It makes it pretty hard to know which directories are contributing the most, IMO. Commented May 28, 2020 at 23:30