blog.lujun9972.win

读:df 与 du——为什么两个磁盘用量命令数字对不上 (opens in new tab)

df 说磁盘 80% 满了,du 说才用了一半——两个命令都没撒谎,只是量的不是同一个东西。本文讲清 df 读超级块、du 遍历目录树的机制差异,以及除了"已删除但被进程持有的文件"之外,reserved blocks、隐藏挂载点、容器 overlay 这些同样会让数字对不上的原因。

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help