LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Conflict in acctual disk ussage & information which we get from df -h command (https://www.linuxquestions.org/questions/linux-newbie-8/conflict-in-acctual-disk-ussage-and-information-which-we-get-from-df-h-command-724320/)

deepak_p86 05-07-2009 02:09 AM

Conflict in acctual disk ussage & information which we get from df -h command
 
Hi Friends,

I have one machine in which df -h command show

/dev/hda3 3.9G 3.9G 0 100% /

while in I have calculate the disk space using du -hsc *command which is about 2.2 GB only

O/P of du -hsc * command is

4.7M bin
6.9M boot
420K dev
16M etc
100K home
4.0K initrd
377M lib
16K lost+found
4.0K misc
4.0K opt
du: `proc/4059/fd/3': No such file or directory
2.0K proc
812K root
12M sbin
48K tftpboot
20K tmp
1.7G usr
59M var
2.2G total

Now please tell me how can i find that where my 1.7 GB disk is getting used....

Libu 05-07-2009 02:36 AM

Use
Quote:

du -hsc .
When you use * it will ignore all hidden files.

deepak_p86 05-08-2009 01:24 AM

thanks tercus accidit...

So can any tell me the command to take the memory details of hidden & unhidden files both ..

Libu 05-11-2009 04:53 AM

Quote:

Originally Posted by deepak_p86 (Post 3534226)
thanks tercus accidit...

So can any tell me the command to take the memory details of hidden & unhidden files both ..


I already did in my previous post.
Use a dot instead of star. The dot means check for current directory and files and sub-folders under it.

Quote:

du -hsc .


All times are GMT -5. The time now is 02:13 PM.