find file by size more MIN and less MAX

11,361

Assuming you want file sizes between 1000 and 1100 bytes:

find . -type f -size +1000c -a -size -1100c
Share:
11,361

Related videos on Youtube

Ivan Ivanovich
Author by

Ivan Ivanovich

Updated on November 06, 2022

Comments

  • Ivan Ivanovich
    Ivan Ivanovich over 1 year

    how i can use linux find command for search files that more MIN and less MAX

    I tried to use the following command:

    find . -type f -a -size +1000 -a -size -1100
    

    but it does not work

  • rubo77
    rubo77 over 4 years
    to show these files use find . -size +1000c -exec ls -lah $1 {} \;