can anyone help me to sort the folders in a directory according to their size?
Could you try this
du --max-depth=1 /directory/ | sort -n -r
actually i want the sorted order in HDFS. could please help me for that.