Re: Show Folders with total disk space used
When finding out where your web space is being used it is useful to be able to list your directories and folders showing total usage for each folder, this allows you to further drill down by concentrating on folders that contain the most usage.
You can perform this task using the du (disk usage) utility:
# du -h --max-depth=1
The output will be in the format as follows:
98M ./wp-content 4.0K ./plesk-stat 4.0K ./picture_library 20K ./css 128K ./test 5.7M ./wp-includes 3.8M ./wp-admin 8.0K ./blogs 144K ./img 4.0K ./tmp 124K ./var 108M .
The -h option shows the usage in human readable form. The –max-depth option ensures we summarise folders in the current directory and not the individual sizes of sub folders.