[NTLUG:Discuss] quiest way to find out largest file in the disk (use command line) ?

David Stanaway david at stanaway.net
Wed Mar 3 10:27:18 CST 2004


When I was looking for some perl-tk examples, I came across this:


http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=92&lngWId=6


It sure beats recursive du -hs (Although, that is what I use when I have
an unidentified disk hog , UDH).




On Mon, 2004-03-01 at 08:05, David Camm wrote:
> i quick way is to go to a directory (say /usr) then do `du -bc|more` and you'll 
> see the size of each sub-directory. check out the man page for du .... there may 
> be more useful options for you.
> 
> david camm
> 
> m m wrote:
> > suddently, my disk went to 97% usage. (only 3% free space)
> > 
> > Is there any way to list top 10 lagest files in the same disk?
> > 
> > if not, how about in the same directory (includes sub-directories), say 
> > /usr or /var ?
> > 
> > use console/command line only [no X-windows available :( ]
> > 
> > _________________________________________________________________
> > The new MSN 8: smart spam protection and 2 months FREE*  
> > http://join.msn.com/?page=features/junkmail
> > 
> > 
> > _______________________________________________
> > https://ntlug.org/mailman/listinfo/discuss
> > 
> 
> 
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
-- 
David Stanaway <david at stanaway.net>



More information about the Discuss mailing list