[SLUG] Re: Largest file

Bob Garrood bgarrood at tiscali.co.uk
Mon Mar 20 12:03:20 GMT 2006


Hi

Al Girling wrote

"On Sat, Mar 18, 2006 at 11:25:04AM GMT, John Allsopp wrote:
> > 1: Is there a command to tell me the largest file within a filesystem
> > hierarchy (from here downwards)?
> 
> ls -RSs seems to help, but doesn't collect it all together.

How about:


$ du -ha <path/to/directory> | sort -n"

This has odd effects.  How about:

du -a <path/to/directory>  |sort -gr



Bob 





More information about the Scarborough mailing list