Why does du command shows greater size than total size of each file in directory?
Issue
- Why does a
ducommand 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
