Solved

Determing free disk space

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux pull logs and export FTP 4 71
awk sed 8 43
awk file 6 54
Linux Desktop suggestion for Dell Inspiron 3043 13 40
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.…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

810 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