A little bit lazy to figure how to get full paths, but

clean and simple: 

$ ls -RShl 

just the size and filename:

$ ls -Shl  | awk '{print $5 " " $8}'

no directories, just the size and filename:

$ ls -RShl  | grep -v '^d' | awk '{print $5 " " $8}'

there's probably easier ways to do it, but that's my 2 cents.


On 4/15/05, James Ballantine <[EMAIL PROTECTED]> wrote:
> Not quite what you wanted, but to get the largest files or directories
> in the current directory in order, you can use:
> 
> du -cks * |sort -nr |head -n15
> 
> This came from one of the O'Reilly UNIX books if I recall correctly.
> They suggested you alias it to 'ducks' for ease of typing.
> 
> /james
> 
> 
> Ben Donohue wrote:
> > Voytek wrote:
> >
> >> I'm trying to find a specific file withing a web tree, what the way to
> >> do it:
> >>
> >> I tried this with no luck
> >>
> >> # locate /home/domain.org.au localconf.php
> >> only to get
> >> find: localconf.php: No such file or directory
> >>
> >>
> >>
> > Further to this (and this is not an answer to the question above) but
> > I'm buggered if i can find the largest files on the hard disk and list
> > them in order.
> > I've tried various arguements but can't seem to crack it.
> > like find / -S -r (or -s) -name xxx|more
> >
> > Any ideas out there?
> > Ben
> >
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> 


-- 
Julio C. Ody
http://www.livejournal.com/users/julioody/
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to