Reply
New Contributor
Posts: 2
Registered: ‎09-18-2018

Sorting

can anyone help me to sort the folders in a directory according to their size?

Highlighted
Champion
Posts: 753
Registered: ‎05-16-2016

Re: Sorting

Could you try this 

du --max-depth=1 /directory/ | sort -n -r
New Contributor
Posts: 2
Registered: ‎09-18-2018

Re: Sorting

actually i want the sorted order in HDFS. could please help me for that.

Announcements