Find files larger than 5mb in Linux

To find files larger than 5 MB, we need to pass the -size option with value +5M in the find command.

find . -type f -size +5M

It will recursively search for the files inside the current folder “.” and all the folders inside and filter out the files with size larger than or equal to 5MB, then print the paths of each such files.

To print file size along with with file paths for files larger than 5MB use this command:

find . -type f -size +5M -exec ls -lh {} \; | awk '{ print $9 "|| Size : " $5 }'
  • G-> for gibibytes
  • M-> for megabytes
  • K-> for kibibytes
  • b-> for bytes