Linux and data storage?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Sep 27 2004 at 12:16:18PM -0700, Sean M McMahon wrote:
> You mention  using du -ms to find out how much data you have.  What is the 
> difference between that and using df -k .  ?

You use df to tell you how much space is used and free in a partition.
OTOH du should be used to tell how much space the files and directories
within a directory use. I.E. when I do "du -h" in my home dir I find out
how much space my home directory is using. When I do "df -h ." I find
out how much of the file system containing the current directory is
being used and how much is free.

Check the man pages to find out what all the options do.

HTH

- -- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

Thomas Stivers	e-mail: stivers_t at tomass.dyndns.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBWGoV5JK61UXLur0RAuULAJ4vULzj+dbFP9JJYWMBFI3859Ti3QCfXAWJ
aaLd0RBd4fmm7Tddlwnegjc=
=9vDr
-----END PGP SIGNATURE-----




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux