How to check recursive space usage in Ubuntu 16.04
There are times where I need to get the space taken each by my www sites. I use this command to get the space usage (recursively) for my www sites in /var/www/html
$ du -h -d1 /var/www/html
The result is as follows
Description
du | tool for disk usage |
-h | humanize. so the values are easily readable by ‘humans’ |
-d1 | depth 1 level (how deep we want the recursive to happen) |
/var/www/html/ | path to start |
For more information, checkout man du
page.