vote up 2 vote down star

The entire box. How many gigs is everything using?

And how do I check total?

flag

migrated from stackoverflow.com

8 Answers

vote up 11 vote down check

At a command line, type

df -a

This will list each device and usage information.

You might find

df -h

more readable, since it gives quantities in Gb or Mb, etc.

link|flag
vote up 7 vote down

As suggested by others, du and df can easily do the job, but baobab (see screenshot below) is a great tool for analysing disk usage of whole file system or specific folders.

If you are using ubuntu, then baobab is already installed. Start it from Menu->Accessories->Disk Usage Analyzer or type baobab in a terminal window.

alt text

link|flag
vote up 2 vote down
du . -h --max-depth=1

lists the size of all the folders in the current directory (or at a location of your choice)

link|flag
vote up 2 vote down

Here are some approaches:

df -h

Or install the totally awesome kdirstat graphical utility:

alt text

link|flag
Is this based on WinDirStat, or is it the other way around? – Marcin Nov 16 at 10:12
Actually, kDirStat came first, something the kDirStat folks are rather sensitive about. (Apparently most people just assume the win version same first. :-) – DigitalRoss Nov 16 at 17:32
vote up 1 vote down
du -sh folder

tells you how much folder is taking space. You can list multiple directories at once or use *.

df -h

tells you the total space of each mount point.

You can omit h (human readable) from both if you want to know the exact amounts.

link|flag
vote up 1 vote down
df -h

Although, this question probably belongs on superuser.com

link|flag
vote up 0 vote down

du

link|flag
du by itself gives disk usage for the current directory – pavium Nov 16 at 6:13
vote up 0 vote down

There is also ncdu.

link|flag

Your Answer

Get an OpenID
or
never shown

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