我的 Macbook Air 上的可用空間未正確報告。
當我檢查硬碟資訊時,硬碟容量為 120GB,其中 17GB 被報告為可用空間。
當我在 Finder 中查看時,我可以看到已使用空間總計約為 73GB 的資料夾清單。
所以我想知道哪些資料夾正在使用缺少的 29GB。
我希望從命令列找到丟失的資料。我du -h -d 1
從根資料夾運行,它報告總共使用了 88 GB。
當我運行時,df -h
我得到的磁碟大小為 112Gi,已使用空間為 96Gi,可用空間為 16Gi。
所以我看到雖然df
報告使用了 96GB 的空間,但du
只列出了 88GB 的使用情況。
我想知道哪些資料夾佔用了未計算的空間。
答案1
對於df
,請看一下man df
:
-H "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte
and Petabyte in order to reduce the number of digits to three or less using base 10 for
sizes.
-h "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte
and Petabyte in order to reduce the number of digits to three or less using base 2 for
sizes.
您使用了-h
,它使用基本 2 尺寸。 Finder 正在報告 10 種基本尺寸。
檢查df -H
- 你會發現它的輸出與 Finder 所說的完全匹配。