du -sh * 275M fusionforge_g 50M git 99M httpd 181M php-doc 4.0M pirate3 3.4G qt 1.1M vim-addon-manager 126M wp-and
这个输出现在乱了,如何根据子目录的大小对这个输出进行排序?
@vstm我的核心工具的版本小于7.5,所以http://www.voidcn.com/article/p-ulqbnzkw-btw.html的解决方案无法解决我的问题.
rpm -qa | grep core coreutils-5.97-19.el5 policycoreutils-1.33.12-14.2.el5
@Leonid Volnitsky
sort -nr在使用-h选项时不起作用:(du -sh * | sort -nr 275M fusionforge_g 181M php-doc 126M wp-and 99M httpd 50M git 4.0M pirate3 3.4G qt 1.1M vim-addon-manager像这样的东西:
command du -sh */ | sort -nrh
精彩评论