Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Somehow my harddrive is full and I can't find the source, so is there a way to get a list of all folders on a harddrive with the amount of used space? I could do it manually and check the properties of each folder, but this would be too much work.

I use Ubuntu 14.04

share|improve this question
Be careful removing stuff! – Tim Jul 30 '14 at 20:08

3 Answers 3

up vote 2 down vote accepted

So you want to search the dash for either baobab or Disk Usage Analyser. This is already installed.

You can either chose doughnut or box graph, click the buttons in the bottom right to switch.


enter image description here


enter image description here

Hover over to view the size... (3GB here)

enter image description here

... and click on a folder to see what makes that up:

enter image description here enter image description here

share|improve this answer
Looking at your screenshots, I wonder if they were full-desktop screenshots later cropped (as opposed to per-window screenshots taken using Alt+PrtScn)? – muru Jul 30 '14 at 20:02
1… Well noticed! Very annoying. Some are full screen cropped (number 3, to show the hover box) but the others are Area screenshots... – Tim Jul 30 '14 at 20:41

Try to use the Disk Usage Analyser app (installed in Ubuntu by default).

share|improve this answer
How can I open this? – Tim Jul 30 '14 at 19:44

You can also use the command line if you would rather.

ls -h -l /path/to/folder


ls -sh -S /path/to/folder

to show you it ordered by size.

You can choose which folder in your file system to view, and view it in many different ways using this tool. /home is often a big one. There is more info available in the manual:

man ls

That command will show you all the different options. Cheers!

share|improve this answer
Cool - how can I sort the output? – Tim Jul 30 '14 at 19:57
@Tim that would be ls -sh -S (the -S flag sorts by size). – muru Jul 30 '14 at 20:00
Note that this won't show the size of directories (as most people understand it) - it'll show the size used by the directory metadata (the representation of the directory on the filesystem internals). To calculate the (usual) size, you'd use du -hs – goncalopp Jul 31 '14 at 8:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.