Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Determing free disk space

Posted on 2001-06-25
1
Medium Priority
?
217 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 40 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

604 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