Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xmiinc

macrumors newbie
Original poster
Nov 7, 2005
8
0
NYC
A friend needs help identifying his largest files on a disk. I've come close in Terminal (ls, find), but haven't found the syntax to do the following:
list all files, largest first, including path and file-size in megabytes.

Can someone help me out? Thanks in advance...
 
Thanks! I'm sure these utils will be helpful (and I can continue trying to solve this via the cli...I'm curious that way)
 
ls -alR | sort -n -k5,5

(recursive directory listing, numerically sorted of the 5th item of each line, which is the size of the file)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.