Useful Tips : How to find the biggest files on a unix system ?

Jun 3, 2009

Avatar of Olivier Girardot
Olivier Girardot

Useful mainly when you've got a problem on a unix system because of the space disk. Because some still manage to fill a server with logs or temporary files especially when some programs go nuts and loop without end.

So whenever this happens, and you're in a directory that contains part of the problem, you can type that :


text

find . -size +50000 -exec ls {} ; | sort -nr | more

Then, with this command line, you'll be able to find files that are larger than 50 000 blocks long, and they will be sorted and paginated by more.
Enjoy !

Menu

Follow

Copyright © 2026
 Olivier Girardot's Ramblings
  Powered by   Writizzy