LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Discrepancy measuring files with du (https://www.linuxquestions.org/questions/linux-software-2/discrepancy-measuring-files-with-du-4175443325/)

JosephS 12-28-2012 10:54 PM

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

bijo505 12-29-2012 01:52 AM

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


All times are GMT -5. The time now is 07:51 PM.