1. 24
  1. 3

    ncdu[1] is another great utility for replacing df. I find ncdu to be helpful because it lets you remove files/directories right in the interface, Some ‘do one thing, and do it well’ purists might hate that feature though.

    The sorting with duf looks really nice, I’ll have to give this one a try.

    1. 5

      ncdu replaces du, not df. du scans directory entires, adding up sizes. df reports the top level usage and capacity metadata for all attached filesystems.

      Aside from being significantly faster for reporting total usage, df is more accurate. You can sum up the size of all files and directories starting from /, but that won’t necessarily equal the real number of blocks allocated by the filesystem.

      1. 3

        To be fair, naming a du replacement something very similar to df is bound to cause confusion.

        Also, in Dutch “duf” means “tired”, “boring’, and “dull” :) (but that might be on purpose)

        1. 2

          is bound to cause confusion.

          It already did :)

          The difference between du and df is easy to remember:

          • du: display disk usage statistics
          • df: display free disk space
    2. 1

      pydf is another alternate that might be of interest.

      1. 1

        I’ve been using dfc