On Linux or macOS, use du to get the size of each first-level subdirectory in the current folder:
| |
-h: human-readable units (KB, MB, GB)--max-depth=1: only list first-level subdirectories
To view only the total size of the current directory:
| |
-s: show only the total summary
These commands help you quickly understand sizes of subfolders in the current directory.