Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a way to quickly check the amount of free / used disk space in Ubuntu?

I would assume you could right click on 'file system' in the file browser and choose 'properties' or something but there is no such option.

share|improve this question

8 Answers 8

up vote 127 down vote accepted

Open System Monitor from Dash and select the Filesystems tab.

enter image description here

Or alternatively open a Terminal and type:

df -h
share|improve this answer
thanks! got me what i need. But it is kind of a bummer that there's no intuitive way to check the hd usage. I imagine most people would get frustrated trying to figure it out. –  greg Oct 28 '11 at 21:11
Well. Every time you are in a folder in nautilus, it says at the bottom how much space is left on the device. –  Elvis Stressborg Nov 2 '11 at 23:15
@greg: Actually, it isn't as straightforward as you might think, since the UNIX way of mounting filesystems means that any folder's contents can potentially exist on different disks or partitions. Thus, any method of checking free space must explicitly account for this. –  Scott Severance Nov 3 '11 at 3:17
df -h --total –  nutty about natty Mar 10 '13 at 14:22
df for used and free space in bytes, df -m for space in units of 1MB, df -h for largest available unit. You will also get % usage, it remains same with all the above though. –  Fr0zenFyr Jan 17 at 4:45

gnome-system-monitor or df -h or lsblk

Other useful utilities are baobab.

share|improve this answer
+1 for baobab. –  user606723 Oct 28 '11 at 16:11
Agree with user606723. Cool utility baobab :) –  Dhaval Jan 9 at 11:06

You can use baobab or similar tools [kdirstat, filelight] to see what files are using up your disk space, too.

Baobab is also called "Disk Usage Analyzer" on Ubuntu.

Here's a sample screenshot of baobab:


share|improve this answer
For a command line option, there's ncdu. –  Shurane Feb 5 at 14:44

There are a number of ways to do this.

  • Enable the status bar in the View menu in Nautilus. This will place a bar at the bottom of all nautilus windows telling you the free space.

  • Use the File Systems System Monitor to view a list of all disks and their free space.

  • Use the Disk Usage Analyzer to get a listing of all directories on your system and how much free space they take up.

  • Go to any folder in nautilus and right click the background. Open the properties window to check the free space.

  • Run the command df -h.

share|improve this answer
+1 for the status bar! –  greg Oct 28 '11 at 21:11

Using dconf-editor or gsettings (sudo apt-get install dconf-tools) you can enable the default behavior of the status bar.

Type this on your terminal to enable the status bar by default

gsettings set org.gnome.nautilus.window-state start-with-status-bar true

Type this on your terminal to disable the status bar by default

gsettings set org.gnome.nautilus.window-state start-with-status-bar false

After that you will have the statusbar opened by default on Nautilus, no need to run anything else.

share|improve this answer

I wrote a little hack for this with a command line and gui version. It's rather hard-coded, so may need some tweaks. Also, the gui version appears to use a proportional font that messes up the alignment of the displayed output. These scripts could be put in your path somewhere (like in $HOME/bin) and you can create an icon for the gui script on your desktop or panel.

## jdf - Copyleft 04/25/2009 - JPmicrosystems - GPL
## Free space on disk
## Custom df output
## Human readable (-h)
## sorted by file system name

## Make a temporary file and put the following awk program in it
AWK=$(/bin/mktemp -q /tmp/jdf.XXXXXX)

## PROG is quoted to prevent all shell expansions
## in the awk program
cat <<'PROG' > ${AWK}
## Won't work if mount points are longer than 21 characters

  ## Use fixed length fields to avoid problems with
  ## mount point or file system names with embedded blanks
  FIELDWIDTHS = "11 11 6 6 5 5 21"
  printf "\n%s\n\n", "                    Available Disk Space"
  printf     "%s\n", "Mount Point          Avail Size  Used  Use%  Filesystem Type"

## Eliminate some filesystems
## That are usually not of interest
## anything not starting with a /

! /^\// { next }

## Rearrange the columns and print

  gsub("^ *", "", TYP)
  printf "%-21s%6s%6s%5s%5s %s%s\n", $7, $5, $3, $4, $6, $1, TYP

END { print "" }

df -hT | tail -n +2 | sort | gawk -f ${AWK}

rm -f ${AWK}

Sample output:

                   Available Disk Space

Mount Point          Avail Size  Used  Use%  Filesystem Type
/                      22G  30G  6.6G   24%  /dev/sda6  ext4    
/media/dataspace       44G 155G  105G   71%  /dev/sda8  ext3    
/home                 5.5G  32G   25G   82%  /dev/sda9  ext3    

Gui version:

jdf | zenity  --title "Available Disk Space" --text-info --width=500 --height=300 --timeout=60

New Gui Version with fonts fixed using yad


jdf | yad  --fontname="DejaVu Sans Mono 12" --title "Available Disk Space" --text-info --width=650 --height=300
share|improve this answer

Type in disk usage analyzer in dash.

share|improve this answer
Please elaborate your answer. –  green7 Apr 19 '13 at 7:28
Disk Usage Analyzer in the Ubuntu dashboard refers to the baobab command that you can access from the terminal. –  Shurane Jun 7 '13 at 0:57

I am not a filesystem pro, but I would like to clarify a minor difference between



df -h

lsblk : display mounted and unmounted disk

df -h : display mounted disk only

share|improve this answer

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.