QUOTE:原帖由 linux-小雪 于 2009-1-31 08:39 发表

求助..如何显示A目录下所有目录的容量大小(A目录有B,C,D目录与E,F文档)?
du ./ -h
当然上面的是全部输出了含有的文件的大小,可以结合一下tail 或者 grep进行过滤显示。
du --max-depth=1
这个事实显示了第一层的大小
--max-depth=N
print the total for a directory (or file, with --all) only if it
is N or fewer levels below the command line argument;
--max-depth=0 is the same as --summarize