Software >> OS >> Unix >> Solaris >> commands >> find >>  How to find files larger or smaller than a certain size from a particular directory

equal

# find /targetdir -size 1000

- lists files with size 1000 blocks (512byte/block)

# find /targetdir -size 1000c

- lists files with size 1000 bytes

larger

# find /targerdir -size +1000c

-list files larger than 1000 bytes

smaller

# find /targetdir -size -1000c

- list files smaller than 1000 bytes