Theory and Practice
About Archives Categories Tags Authors 中文 ไทย

[Bash] List Directory Size in Descending and Ascending Order

March 22, 2018
Edit on Github

Use du and sort command to list directory size in descending and ascending order.

List Folder Size (Descending)

$ du -s * | sort -rg

List Folder Size (Ascending)

$ du -s * | sort -g

References:

[1]how to list folder size in descending order ?

Author: Siong-Ui Te
∈ Category: Bash
∑ Tags: Bash , Commandline , du command , sort command
Powered by Github Pages, Pelican, pyScss.