[prev in list] [next in list] [prev in thread] [next in thread]
List: centos
Subject: Re: [CentOS] question about directory size in linux..
From: Anthony K <akcentos () anroet ! com>
Date: 2017-02-23 6:21:35
Message-ID: fb859ab9-8beb-9b0e-8f98-4241f9269c3e () anroet ! com
[Download RAW message or body]
On 23/02/17 14:33, Gordon Messmer wrote:
> On 02/22/2017 07:02 PM, John R Pierce wrote:
>>> Without knowing what the OP's file system but assuming he too is
>>> using EXT4, what would the directory be storing that's so different
>>> from mine?
>>
>> a bajillion small files vs a few large ones.
>
>
> Not to be pedantic, but the size of a directory has nothing to do with
> the size of the files it contains. It doesn't matter if they're small
> files or large ones. The only thing that matters is the number of
> filenames in the directory, and possibly the length of those file names.
Thanks for setting me straight. I guess the OP must have, like you
said, a *bajillion*, puny sized files:
$ mkdir junk
$ for u in {1..10000}; touch junk/junk-${u}; done
$ ls -ld junk
drwxr-xr-x 2 akk users 270336 Feb 23 17:19 junk
$ du -bs junk
270336 junk
_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic