LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2009, 02:09 AM   #1
deepak_p86
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Rep: Reputation: 0
Unhappy 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....
 
Old 05-07-2009, 02:36 AM   #2
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
Use
Quote:
du -hsc .
When you use * it will ignore all hidden files.
 
Old 05-08-2009, 01:24 AM   #3
deepak_p86
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
thanks tercus accidit...

So can any tell me the command to take the memory details of hidden & unhidden files both ..
 
Old 05-11-2009, 04:53 AM   #4
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
Quote:
Originally Posted by deepak_p86 View Post
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 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get the absolute path information of a command from ps command output ratul_11 Linux - General 1 08-06-2008 02:10 AM
Free command conflict cghcgh Linux - Newbie 2 04-16-2008 11:48 PM
Apache 1.3 & 2 Conflict & crash ?! Hammad101 Linux - Server 3 11-24-2007 09:22 AM
Basic information needed! PLUGS & WIRES safe & clean- How to? yuppi21 Linux - Hardware 3 11-18-2003 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration