Could you post the command and outputs in a easy to read format using next lines?
I suspect that the size is not different at all ...
When you type "du -hsc dir_name
", you are asking for the size of "dir_name
".
But when you type "du -hsc dir_name/*
", you are asking for the size of all directories and files inside of "dir_name
". So the sum of all the files yielded by "du -hsc dir_name/*
" should amount to the sum of "du -hsc dir_name
".
Hope that helps.
EDIT
I found the following (http://www.linfo.org/du.html):
"A somewhat similar report is provided by using the star ( * ) wildcard, which will match any character or characters. For example, the following command would list the sizes of all directories that are in the tree that begins with the current directory:
du *
However, the only files listed are those in the the parent directory, not those in its subdirectories. Also, no total for the directory tree as a whole is provided.
The use of the -s option and the star wildcard together would cause du to report the names and sizes of only the files and directories contained directly in the top level directory itself (and to not list the names of any of its subdirectories and the files in them). The size of each listed directory is, of course, inclusive of all of its files and subdirectories (including all of the files in them). For example, such a report about the directory tree beginning with the current directory would be provided by the following:
du -hs *
The wildcard can also be used to filter the output to list only those items whose names begin with, contain or end with certain characters or sequences of characters. For example, the following would report the names and sizes of all of the directories and files in the current directory whose names begin with the letter s as well as the names and sizes of all levels of subdirectories of those directories regardless of what their names begin with:
du -h s*"
Note where I bolded. Looks like the wildcard only gets the directories in the parent directory and no sum is provided.