问题描述:

du --max-depth=1 -h /media/downloads/ | sort -g -r

This will not ofcourse sort regarding G, M, K suffixes... Is there any way to solve it as one-line bash command?

网友答案:

Have you tried sort -h -r instead? My Linux is RHEL 6.1. sort version 8.4.

相关阅读:
Top