>_ IzzyLab

Topic breakdown

du sums the space files actually take on disk (by allocated blocks), as opposed to the logical size from ls. The -s flag collapses the output to one line per argument, -k reports the result in kilobytes, -h in "human-readable" units. The first field of the output is the number, the second the path, with a tab in between, so the number is easy to cut out with cut -f1.

What's checked

  1. number matches du -sk
  2. file contains only a number

What it looks like