Why my mac disk has used far more space than the size of the folders it contains

Why my mac disk has used much more space than the size of the folders it contains, as shown in figure

clipboard.png

clipboard.png

Mar.23,2021

metadata and cluster
may be due to too many directories and too many small files


there is a difference in size and placeholder. The size is in bytes, and the space occupied by files on disk is in clusters


there may be hidden folders, and the directory you look at is only htdocs, and there are other directories.


mac:develop dudd$ sudo du-h-D1
4.8m. / .DocumentRevisions-V100
6.0G. / .Spotlight-V100
0B. / .TemporaryItems
0B. / .Trans
4.8m. / .fseventsd

after executing the du command, it is found that there is a .Spotlight-V100 folder with 6G, which seems to be the

that records the file index.
Menu