Why does du command shows greater size than total size of each file in directory?

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content