Quote:
Originally posted by sandrobr
When I execute the command "df -h" the system show me the size from partition /home (size full=1Gb) with 64MB idle, and 936MB Avail. But, when I execute "du -h -s" the system show me only 240MB in use in /home.
|
With no arguments, "df" reports the space used and available on all currently
mounted filesystems (of all types). Otherwise, "df" reports on the filesystem
containing each argument file.
The command "du" reports the amount of disk space used by the specified files,
and by each directory in the hierarchies rooted at the specified files. Here `disk
space used' means space used for the entire file hierarchy below the specified file.
From where did you issue the command "du -h -s" ? Look at this example:
Code:
mingdao@james:~/downloads$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 4.7G 2.7G 2.1G 56% /
/dev/sda2 59G 2.4G 57G 5% /home
/dev/sda7 2.9G 33M 2.9G 2% /distro
/dev/hda1 9.3G 3.7G 5.7G 39% /XP
/dev/hda2 9.3G 4.4G 5.0G 47% /PROGRAMS
/dev/hda3 38G 37G 1.5G 97% /DATA
mingdao@james:~/downloads$ du -h -s
1.4G .
mingdao@james:~/downloads$ du -h -s /home
2.4G /home
Could you have issued "du -h -s" from some directory other than /home ?
And I assume when you said "idle" you meant "used" instead?