Solved

Determing free disk space

Posted on 2001-06-25
1
205 Views
Last Modified: 2010-04-20
Ya, I recently installed Linux on a 2 gig partition of my hardrive, and I'm having trouble finding out how  much disk space I have left.  A friend told me to try "du -h" but it appears that it shows how much space each individual file takes up, and i don't really want to add up everything and then subtract it from 2,048MB. So what i'm asking is, is there a utility for this? Or possible a different switch for "du"? I looked at the "du man"ual boot it wasn't much help to this newbie.  I'm running Mandrake 8.0 if that matters.
0
Comment
Question by:JohnBlazes
1 Comment
 
LVL 3

Accepted Solution

by:
jnbkze earned 10 total points
ID: 6226684
The command you should be using is df and not du
if you use the command df -h you'll get an output similar to this:

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda6             484M   41M  419M   9% /
/dev/hda1              49M  2.5M   44M   6% /boot
/dev/hda8             294M   81M  197M  30% /home
/dev/hda7             294M   36k  278M   1% /tmp
/dev/hda5             984M  828M  106M  89% /usr
/dev/hda9             149M   28M  113M  20% /var

Hope this helps
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now