- Code: Select all
du -k .
The output will be, for example:
- Code: Select all
9435 ./Pictures/holidays
11021 ./Pictures/family
21253 ./Pictures
1719 ./Documents
11230 ./Data
The values are in Kilobytes, so in other words there are approximately 21MB in Pictures, 1.7MB in Documents, and 11MB in Data. Note how all subdirectories are displayed.
If you just want to see the 'top level' subdirectories, use something like:
- Code: Select all
du -k --max-depth=1 .
As always, look at the full help to see what other options may be useful, with:
- Code: Select all
du --help
