>_ IzzyLab

Topic breakdown

Finding the single largest file is not the same as the largest directory: du sums sizes by directory, but here you need one file across the whole tree. Walking the tree recursively and selecting exactly files (not directories) is done by find with a type filter; it can also output each one's size and path in a given format. Then comes sorting by size descending and the top line. To get just the name from a full path, there's basename.

What's checked

  1. the largest file is found

What it looks like