How to get the size of a Linux or Mac OS X directory from the command-line.
How to get the size of a Linux or Mac OS X directory from the command-line. du used in OS X reports size with 512-byte blocks — the sizes are essentially rounded up to the next 512-byte value. This tells you the space on disk, which is larger than…