linux基础命令(34) du命令
实例4:显示多个文件所占空间 命令: du log30.tar.gz log31.tar.gz 输出: [root@localhost test]# du log30.tar.gz log31.tar.gz 4 log30.tar.gz 4 log31.tar.gz [root@localhost test]# 说明: 实例5:只显示总和的大小 命令: du -s 输出: [root@localhost test]# du -s 1288 . [root@localhost test]# du -s scf 32 scf [root@localhost test]# cd .. [root@localhost soft]# du -s test 1288 test [root@localhost soft]# 说明: 实例6:方便阅读的格式显示 命令: du -h test 输出: [root@localhost soft]# du -h test 608K test/test6 308K test/test4 4.0K test/scf/lib 4.0K test/scf/service/deploy/product 4.0K test/scf/service/deploy/info 12K test/scf/service/deploy 16K test/scf/service 4.0K test/scf/doc 4.0K test/scf/bin 32K test/scf 8.0K test/test3 1.3M test [root@localhost soft]# 说明: 实例7:文件和目录 都显示 命令: 输出: [root@localhost soft]# du -ah test 4.0K test/log31.tar.gz 4.0K test/test13.tar.gz 0 test/linklog.log 0 test/test6/log2014.log 300K test/test6/linklog.log 0 test/test6/log2015.log 4.0K test/test6/log2013.log 300K test/test6/log2012.log 0 test/test6/log2017.log 0 test/test6/log2016.log 608K test/test6 0 test/log2015.log 0 test/test4/log2014.log 4.0K test/test4/log2013.log 300K test/test4/log2012.log 308K test/test4 4.0K test/scf/lib 4.0K test/scf/service/deploy/product 4.0K test/scf/service/deploy/info 12K test/scf/service/deploy 16K test/scf/service 4.0K test/scf/doc 4.0K test/scf/bin 32K test/scf 4.0K test/log2013.log 300K test/log2012.log 0 test/log2017.log 0 test/log2016.log 4.0K test/log30.tar.gz 4.0K test/log.tar.bz2 4.0K test/log.tar.gz 0 test/test3/log2014.log 4.0K test/test3/log2013.log 8.0K test/test3 4.0K test/scf.tar.gz 1.3M test [root@localhost soft]# 说明: (编辑:云计算网_泰州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |