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未満であるため、https: //serverfault.com/questions/62411/how-can-i-sort-du-h-output-by-sizeのソリューションでは問題を解決できません.
rpm -qa | grep core
coreutils-5.97-19.el5
policycoreutils-1.33.12-14.2.el5
-hオプションが使用されている場合、@Leonid Volnitsky sort -nr は機能しません:(
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