Determine available free space on Ubuntu?

df -h

(Disk Free)

It shows the free space on each of the mounted file systems.


Filesystem      Size      Used      Avail       Use%      Mounted on


So cd to the filesystem that’s full, and du -sh * (Disk Usage) will show the total space used by each of the files/directories in the current working directory. The --max-depth option for du may also be useful here.

The simplest approach is just to work your way into the directory structure of the filesystem in question, trying to isolate files or directories that are taking up more space than expected.

Note: It’s also worth running df -i to check the you haven’t run out of inodes (ifree should be non-zero on writable partitions) – this can happen on some filesystems, especially if a larger number of small files have been created.


About zephyr9000

Happy sailer
This entry was posted in harddisk and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s