This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / I can use "du -s /home/* | sort -g" to sort disk-usage by size ( kb => 1100, 130000, 1200000 ); how can I sort by mb/gb ( say du -sh /home/*, I expect 1.1M, 130M, 1.2G, instead of 1.1M, 1.2G, 130M ). thx
-bentley(小兔);
2007-11-6
(#4038701@0)
-
"du -s --block-zise=MB /home/* | sort -g" works on Linux
-qwertyasd(大小);
2007-11-6
(#4041108@0)
-
Thanks
-bentley(小兔);
2007-11-6
(#4041960@0)