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

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 :


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 !