The -size
option allows you to find files based on their size.
By default, the argument to -size
is 512-byte blocks, but adding a
suffix can make things easier. The available suffixes are b
(512-byte blocks), c
(bytes), k
(kilobytes), and
w
(2-byte words). Additionally, you can prepend a plus sign
("larger than") or minus sign ("smaller than").
For example, to find regular files in /usr/bin
that are
smaller than 50 bytes:
$ find /usr/bin -type f -size -50c
/usr/bin/krdb
/usr/bin/run-nautilus
/usr/bin/sgmlwhich
/usr/bin/muttbug