>_ IzzyLab

Topic breakdown

The -size test in find selects files by size with the units c (bytes), k, M, G (powers of 1024). As with find's other numeric tests, the + prefix means "greater", - "less", and no sign "exactly". An important subtlety: the size is first rounded up to a whole number of units. So -size -1M ("less than one unit", i.e. zero) finds only empty files, and -size 1M everything from 1 byte up to 1 MiB. For exact thresholds use smaller units — -size -1024k or bytes with c. Combining -size with -type f, -mtime, -name gives precise selections — for example, "large old logs to rotate".

What's checked

  1. large files found
  2. files ≤ 1 MiB excluded

What it looks like