File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes Finding large files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Finding large files" Watch "Finding large files" New topic

Finding large files

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

I have a machine that appears to have something choking its disk. I know about using 'du', but does anyone have any pointers on ways to fine tune my search for the troublemaker(s)?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15081

Have a look at the 'find' command (try 'man find'). You can use it to find files based on many different criteria, including the size of files.

For example, to find all files in the file system larger than 100 MB, do:

find / -size +100M -print
[ January 02, 2008: Message edited by: Jesper Young ]

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Diego Freniche

Joined: Dec 28, 2007
Posts: 8
Install "filelight", a wonderful app that shows you used space graphically.
Just go to a root console and try:

or better, use Synaptic package manager.

SCBCD 1.3, SCWCD 1.5, SCJP 1.5 & 1.6
I agree. Here's the link:
subject: Finding large files
It's not a secret anymore!