Solved

Determing free disk space

Posted on 2001-06-25
1
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

726 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