>_ IzzyLab

Topic breakdown

To find the largest file, its size must be measured and ranked. Two standard approaches: du (with flags to count files and show human-readable sizes) gives the size of each object, but the output isn't sorted — you pipe it through sort, which can understand the K/M/G suffixes and sort in descending order; the alternative is find with a size filter (-size) or size printing via -printf. It's worth acting in two steps: first pin down the path exactly, and only then delete the file with rm — deletion is irreversible, so verify the path beforehand.

What's checked

  1. Culprit found
  2. Large file deleted
  3. The other files are untouched

What it looks like