Home arrow Journal arrow Today Quick Tip: List and Sort Directories by Size in FreeBSD
Today Quick Tip: List and Sort Directories by Size in FreeBSD PDF
Sunday, 20 February 2011
To accomplish that use du and sort:

  du -sm *| sort -nr


If there's a lot of files you might want only 10 of them:

  du -sm *| sort -nr | head -10


On older FreeBSD version using du -sm * might not work. Use instead without *.

  du -sm | sort -nr | head -10

Last Updated ( Monday, 07 November 2011 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?