Find large files in Linux


My favorite one-liner to do this

find / -type f -size +10M -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

From the Linux Man page for ‘find’, size can be set to the following:

  • ‘b’    for 512-byte blocks (this is the default if no suffix is used)
  • ‘c’    for bytes
  • ‘w’    for two-byte words
  • ‘k’    for Kilobytes (units of 1024 bytes)
  • ‘M’    for Megabytes (units of 1048576 bytes)
  • ‘G’    for Gigabytes (units of 1073741824 bytes)

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Be the first to leave a comment!