Open licoded opened 7 months ago
reference link: Using ls to list directories and their total sizes [closed]
Try something like:
du -sh *
short version of:
du --summarize --human-readable *
du: Disk Usage
du
-s: Display a summary for each specified file. (Equivalent to -d 0)
-s
-d 0
-h: "Human-readable" output. Use unit suffixes: Byte, Kibibyte (KiB), Mebibyte (MiB), Gibibyte (GiB), Tebibyte (TiB) and Pebibyte (PiB). (BASE2)
-h
Try something like:
short version of:
Explanation:
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)