同一个 du 运行的结果竟然不同? du -hs / du -h --max-depth=1 有啥区别?
ncdu 子文件夹的大小总和竟然大于 total ?
如何复现:
1
metrue 2016-08-10 18:47:45 +08:00 via Android
有一种东西叫 man
|
2
fzinfz OP @metrue
ncdu 貌似是因为 hard links 的 bug : BUGS Directory hard links are not supported. They will not be detected as being hard links, and will thus be scanned and counted multiple times. du 是为什么么?-d/-s 会影响大小计算? -d, --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 -s, --summarize display only a total for each argument |
3
fzinfz OP |