LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2012, 10:54 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
Discrepancy measuring files with du


I'm having trouble understanding whats happening with du. I measured disk usage of /home/joe/ and got this:
Code:
root@Squeeze:/mnt/backup/squeeze/backup.0/home# du -hsc ./*
229M    ./backup
18G     ./joe
18G     total
and when I measured inside /joe/ I got this:
Code:
root@Squeeze:/mnt/backup/squeeze/backup.0/home/joe# du -hsc ./*
76K     ./282420-Question-about-sharpening-technique.html
108K    ./449862-Razor-Edge-Book-of-Sharpening.html
104K    ./79287-problems-beginning-honer-2.html
60K     ./81240-need-advice-sharpening-razor.html
116K    ./81241-making-lather-mama-bears-soap-2.html
96K     ./81241-making-lather-mama-bears-soap-3.html
108K    ./81241-making-lather-mama-bears-soap.html
96K     ./advantage-70-30-bevel.html
76K     ./angle-for-steeling-1.html
36K     ./angle-for-steeling-2.html
11G     ./audio
247M    ./bin
56K     ./burning-youtube-videos-dvd.html
48K     ./Buying-Straight-Razors-On-Ebay_W0QQugidZ10000000001450975.html
4.0K    ./dead.letter
3.1M    ./Desktop
662M    ./documents
28K     ./edge-probing-and-assessment.html
4.0K    ./edge-thickness.txt
0       ./Firefox
332K    ./haiti
72K     ./Honing.html
96K     ./how-much-resistance-correct.html
4.0K    ./iceweasel-trouble.txt
4.0K    ./jre.txt
16K     ./links
4.0K    ./majorBurnz.txt
8.0K    ./mbox
4.0K    ./md5.txt
4.0K    ./modine.txt
112K    ./need help-setting-bevel.html
676K    ./need-help-with-chromium-browser_files
104K    ./need-help-with-chromium-browser.html
100K    ./Pressure to set bevel .html
60K     ./question-about-magnifiers-2.html
148K    ./question-about-magnifiers.html
40K     ./receipts.doc
728K    ./resumes
60K     ./sharpening-single-bevel-or-asymmetrical.html
68K     ./sharpen-razor-razorandstone.html
4.0K    ./sharpness-grit-levels.txt
20K     ./sharpness_review.html
12K     ./sharpness-tests.txt
20K     ./tape-usually-bad-for-razors.html
36K     ./taping-the-spine-new-light-Jende-Industries.html
32K     ./time.html
980K    ./transfer
2.6G    ./video
14G     total
Why does one give me 4G more when I'm measuring the same files?

Thanks
 
Old 12-29-2012, 01:52 AM   #2
bijo505
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: Fedora & Ubuntu
Posts: 77

Rep: Reputation: 18
Hi
Just run the following, it will include all files (including hidden), so you can find out the details of the missing "GB's"

du -ach /mnt/backup/squeeze/backup.0/home/joe
--
Thanks,
Bijo
 
  


Reply



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
df vs du discrepancy DebianUser Linux - Hardware 3 09-12-2011 04:36 PM
Discrepancy df/du aztrix SUSE / openSUSE 5 01-12-2010 04:52 PM
webalizer bandwidth discrepancy blizunt7 Linux - Software 3 03-14-2008 05:13 PM
x.org 6.9 discrepancy? bobbens Linux - Software 6 01-12-2006 06:17 AM
Server uptime discrepancy peppiv Linux - Software 2 05-17-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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