why the cat size is smaller than the actual files?

I wonder what is happening here and if in fact I am concatenating files properly or am loosing some of them. So, I want to cat all the files (all txt) in a folder (called de) into a single txt file. Here are my two ways:

cat de/* >> de_merged_all
du -h de_merged_all
353M    de_merged_all

Now if I check the size of the folder de, I get:

 du -h de
 383M   de

So, why these numbers don’t match?

Source: bash

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.