By default sort command will sort by ASCII order.
To sort it on basis of NUMERIC sort, you need to specify “-n” switch.
du -sk * | sort -n
By default sort command will sort by ASCII order.
To sort it on basis of NUMERIC sort, you need to specify “-n” switch.
du -sk * | sort -n