On 15/04/2005, at 11:44, Ben Donohue wrote:
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




This will give you the 10 largest files on your hard drive (that can be seen by the user executing the code)
find / -ls -type f 2>/dev/null | awk '{print $7 " " $11 }' | sort -nr | head -10


Change the 'head -10' to another number to get more/less files listed.

--
Tony Green <[EMAIL PROTECTED]>

--
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