Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k
Source Link
Eimantas
  • 1.5k
  • 3
  • 24
  • 32

Directory size calculation difference

I need to get the size of directory in terminal for signing purposes. I'm using following command:

du -s /path/to/dir 

I'm multiplying the result by traditional UNIX block size (512 bytes) and get actual directory size in bytes. However, the Finder's "Get Info" dialog window shows the size slightly smaller than the one calculated with the terminal command. And it seems that it's reproducible on any folder/bundle. What am I missing?