Ubuntu – Why is / taking up 7 GB of space (running `du`)

disk-usagefilesystem

I am new to Ubuntu and Linux in general. I am trying to determine what is taking so much disk space, so I run the following command:

du / -h -d 2 | sort -hr

which outputs the following

7.3G    /
5.1G    /var
3.8G    /var/www
1.1G    /usr
635M    /var/lib
573M    /var/cache
570M    /lib
474M    /lib/modules
354M    /usr/share
308M    /usr/src
262M    /usr/lib
135M    /usr/bin
118M    /var/log

What does the first line of output mean? why or how could / (nothing?) be taking up 7GB of space?

Best Answer

Everything you see is under / so its the sum up value of everything :P

Related Question