Kubuntu Mini How To

What folder or file takes up the most space.

“Mini How To” What folder or file takes up the most space.

So your drive is filling up and you want to create some free space.  Which folder or file will give you the most gain?
This command will tell you:

du -x --block-size=1024K | sort -nr | head -10

Now keep in mind that this will display the sub folders and files of the folder you are currently in.
This means if you want to check the size of the sub folders and files in your home folder then you will have to go into your home folder like this:

cd ~

And then run the command above.

The output of the command in my home folder looks like this:

14977   ./Music
10828   ./OpenSUSE
5665    ./Videos
4441    ./OpenSUSE/openSUSE-11.0-DVD-x86_64-iso
4394    ./OpenSUSE/openSUSE-11.0-DVD-i386-iso

Pssst you did know this is a Terminal command right?

As always run:

man du

For more info.

Comments are closed.

Powered by: Wordpress