Solved

Determing free disk space

Posted on 2001-06-25
1
207 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

895 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

17 Experts available now in Live!

Get 1:1 Help Now