find has several operators that take a decimal integer. One such argument is -size . The number after this argument is the size of the files in disk blocks. Unfortunately, this is a vague number. Earlier versions of UNIX used disk blocks of 512 bytes. Newer versions allow larger block sizes, so a "block" of 512 bytes is misleading.
This confusion is aggravated when the command
is used. The
option supposedly lists the size of the file in blocks.
But if your system has a different block size than ls -s
programmed to assume, it can give a misleading answer.
You can put a
To search for files using a range of file sizes, a minus or plus sign can be
specified before the number.
The minus sign (
When more than one qualifier is given,.