If you have enough RAM and patience, this will work:

bash# find / -type f -size +1024k -print

That will list all files larger than 1MB. To get a listing of all, sorted by size, do this (again, with lots of RAM and patience):

bash# find / -type f -print | xargs -i ls -l {} | awk '{print $5, $9}' > file.list

Open file.list and replace every space (i.e. " ") with a tab. In vi, this would be s/ /\t/.

Then, do this

bash # sort -n -k 1,8 file.list > sorted.list

--Randy




On Thursday, December 12, 2002, at 04:10 AM, IS Department wrote:

I would like to get a listing of the 100 or 500 or 1000 largest files on my system. Does anyone know of a command or script to do this? I would want file name/location and size in bytes.
 
Thanks

--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to