硬碟空間 - jenhaoyang/backend_blog GitHub Wiki
查詢目前目錄下個資料夾所占空間
du --summarize --human-readable *
解釋:
du: Disk Usage
-s: Display a summary for each specified file. (Equivalent to -d 0)
-h: "Human-readable" output. Use unit suffixes: Byte, Kibibyte (KiB), Mebibyte (MiB), Gibibyte (GiB), Tebibyte (TiB) and Pebibyte (PiB). (BASE2)