Find files whose size is less than 10 MB

I need to find the files in my current directory whose size is less than or equal to 10 MB. ls -lh gives me the file size of each file, but I'm not sure how to find the files whose size are less than or equal to 10 MB.

host@407d:t1_snapshot$ ls -lth

Solution 1:

Should be

find ./ -maxdepth 1 -type f -size -10M

That is find:

  • this directory only

  • type is a file

  • size less than 10 megs