(Answer) (Category) SCO UnixWare 7/OpenUNIX 8/OpenServer 6 FAQ : (Category) Useful Shell Commands :
How do I find the largest files?
To find the largest files, in units of bytes, one can use 'find,' 'ls,' 'awk,' 'sort,' and 'less':
      find / -type f -exec ls -l {} + | awk '{ print $5 "\t" $9 }' \
      | sort -nr | less
To find the largest files, in units of kilobytes:
      find / -type f -exec ls -l {} + | awk '{ print int($5/1024) "\t" $9 }' \
      | sort -nr | less

<mschalit@pacbell.net>
gerberb@zenez.com

[Append to This Answer]
Previous: (Answer) How do I find the largest files and directories?
Next: (Answer) How do I determine the number of free inodes?
This document is: http://www.zenez.com/cgi-bin/ou8faq/faq?file=205
[Search] [Appearance]
This is a Faq-O-Matic 2.721.