[sf-lug] My favorite simple little Linux tips

Rick Moen rick at linuxmafia.com
Wed Aug 4 23:57:19 PDT 2010

Quoting Mike Higashi (mhigashi at gmail.com):

> 2)  ls -lSr   List files by size, in reverse order, so biggest
> disk hogs are at the bottom.

Biggest files within an entire _tree_:
find . -xdev -type f -print0 | xargs  ls -l | sort -rn -k 5 | head -20

(People often answer with shell expressions that list the largest
files and _directories_, but that's a different and easier problem.)

More information about the sf-lug mailing list