8

The entire box. How many gigs is everything using?

And how do I check total?

Alex
  • 2,391
  • 14
  • 35
  • 48

8 Answers8

20

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.

pavium
  • 6,412
  • 1
  • 27
  • 27
10

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

Gaff
  • 18,569
  • 15
  • 57
  • 68
mrucci
  • 9,868
  • 3
  • 31
  • 31
3
du . -h --max-depth=1 

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

artifex
  • 436
  • 3
  • 12
3

Here are some approaches:

df -h

Or install the totally awesome kdirstat graphical utility:

alt text

Gaff
  • 18,569
  • 15
  • 57
  • 68
DigitalRoss
  • 3,138
  • 18
  • 13
  • Is this based on WinDirStat, or is it the other way around? – Marcin Nov 16 '09 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 '09 at 17:32
1
df -h
yhw42
  • 2,241
  • 1
  • 24
  • 30
SleighBoy
  • 2,240
  • 14
  • 16
1
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.

joukokar
  • 11
  • 2
1

There is also ncdu:

Not quite happy with the available disk usage analyzers and looking for a fun project to get used to C programming, I started working on ncdu: A disk usage analyzer with an ncurses interface, aimed to be run on a remote server where you don't have an entire gaphical setup, but have to do with a simple SSH connection. ncdu aims to be fast, simple and easy to use, and should be able to run in any minimal POSIX-like environment with ncurses installed.

Diogo
  • 30,192
  • 65
  • 150
  • 222
geek
  • 9,746
  • 3
  • 21
  • 16
0

du

Dan Breen
  • 101
  • 2