home

Quickies, by Andrea Olivato

text

Du sort by size and human readable

Quick example to improve the du command output by displaying the biggest 10 subfolder of the current folder, each with its human redable size.

	
du -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh | head -n 10

Found on ubuntu forums

2 months ago

December 7, 2011
Comments (View)
text

Folder size in shell using du

Simple way to retrieve a folder size in human readable format using du utility.

du -sh folder_name

2 years ago

July 13, 2009
Comments (View)