find / -xdev -type f | xargs ls -ld | sort -n -k 5,5
find searches the specified filesystem, printing out results. -xdev prevents it from crossing filesystem boundaries (e.g. into /usr for example, if it is a separate filesystem), and -type f makes it only print out file names (i.e. not directories, symlinks, etc.). xargs reads those filenames and runs the specified command, ls -ld, against them in bite-sized chunks. Finally the output is sorted numerically by the fifth column, which is the file size.
Annihilannic
[small]tgmlify - code syntax highlighting for your tek-tips posts[/small]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.