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.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b899-2c2b7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b899-2c2b7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?