Reply
Explorer
Posts: 7
Registered: ‎09-18-2018

Sorting

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

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

Re: Sorting

Could you try this 

du --max-depth=1 /directory/ | sort -n -r
Explorer
Posts: 7
Registered: ‎09-18-2018

Re: Sorting

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

Explorer
Posts: 7
Registered: ‎09-18-2018

Re: Sorting

Thank you for your help
Announcements