【2015-02-01】linux下查看文件夹大小du命令简单笔记

发布时间:2026/8/25 13:45:54
【2015-02-01】linux下查看文件夹大小du命令简单笔记 [历史归档]本文原发布于 cstriker1407.info 个人博客内容为历史存档仅供参考。发布时间2015-02-01 标题linux下查看文件夹大小du命令简单笔记分类操作系统 / linux 标签ubuntu·常用命令·dulinux下查看文件夹大小du命令简单笔记查看du命令帮助cstriker1407cstriker1407-x64:~$du--help这里笔记几个常用的参数-c,--totalproduce a grand total -h, --human-readable print sizesinhuman readableformat(e.g., 1K 234M 2G)-s,--summarizedisplay only a totalforeach argument查看文件目录大小cstriker1407cstriker1407-x64:~$du-chsandroidsource#查看某个文件夹大小12G androidsource 12G 总用量 cstriker1407cstriker1407-x64:~$du-chs*#查看所有文件夹大小12G androidsource 28K bin 12K examples.desktop2.9M projects 805M Qt5.4.0 15G VirtualBox VMs4.0K 公共的4.0K 模板4.0K 视频4.0K 图片1.1G 文档5.1G 下载4.0K 音乐4.0K 桌面 34G 总用量