Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Sorting

Sorting

Explorer

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

3 REPLIES 3

Re: Sorting

Champion

Could you try this 

du --max-depth=1 /directory/ | sort -n -r

Re: Sorting

Explorer

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

Highlighted

Re: Sorting

Explorer
Thank you for your help