cd到上级目录,然后输入一条命令即可查询每个子目录所占用的空间大小

du -h –max-depth=1 Linux学习,http:// linux.it.net.cn

可以更改–max-depth参数的值,该参数表示查询子目录的层级,当前为1层

Leave a Reply

Your email address will not be published. Required fields are marked *