磁盘使用

$du -sh /home/linest/* | sort -rn
272M    /home/linest/mahout
145M    /home/linest/mrs_std
96K     /home/linest/all_auction_category.txt
60K     /home/linest/hive_log
48M     /home/linest/tools
40K     /home/linest/cluster_result.txt
32K     /home/linest/hive-config-old
20K     /home/linest/hive-config
16K     /home/linest/config-old
16K     /home/linest/config
12K     /home/linest/shell
8.0K    /home/linest/tmp_my_test
5.9G    /home/linest/dev
3.6M    /home/linest/apache-maven-3.0.3
3.3M    /home/linest/log.txt
2.6M    /home/linest/mrs_tools
2.4G    /home/linest/host
2.0G    /home/linest/auctionIdentify
0       /home/linest/where
0       /home/linest/part-00000
0       /home/linest/hadoop-config
0       /home/linest/from
0       /home/linest/-0.5


$du -s /home/linest/* | sort -rn
6098628 /home/linest/dev
2515564 /home/linest/host
2081536 /home/linest/auctionIdentify
277984  /home/linest/mahout
147780  /home/linest/mrs_std
48232   /home/linest/tools
3588    /home/linest/apache-maven-3.0.3
3364    /home/linest/log.txt
2624    /home/linest/mrs_tools
96      /home/linest/all_auction_category.txt
60      /home/linest/hive_log
40      /home/linest/cluster_result.txt
32      /home/linest/hive-config-old
20      /home/linest/hive-config
16      /home/linest/config-old
16      /home/linest/config
12      /home/linest/shell
8       /home/linest/tmp_my_test
0       /home/linest/where
0       /home/linest/part-00000
0       /home/linest/hadoop-config
0       /home/linest/from
0       /home/linest/-0.5

加上-h后会换算成KMG,但排序时不会识别单位

你可能感兴趣的:(使用)