Why does du command shows greater size than total size of each file in directory?
Issue
- Why does a
du
command shows greater size than a total size of each file in a directory?
# du -sh dir1
48M dir1
# du -sh dir1/*
4.0K /dir1/file1
4.0K /dir1/file2
4.0K /dir1/file3
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.