[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: du's apparent-size options doesnt display correct file size.
From: |
chomwitt |
Subject: |
Re: du's apparent-size options doesnt display correct file size. |
Date: |
Mon, 31 Jan 2022 15:58:32 +0000 |
On Mon, 31 Jan 2022 15:27:32 +0000
Pádraig Brady <P@draigBrady.com> wrote:
> On 31/01/2022 09:28, chomwitt@posteo.de wrote:
> > Hello.
> >
> > I've installed coreutils (8.32-4) in my Devuan system.
> >
> >
> > $ echo 'abc' > 3charfile.txt
> >
> > $ du -h 3charfile.txt
> > 4.0K 3charfile.txt
> >
> > $ du --apparent-size 3charfile.txt
> > 1 3charfile.txt
> >
> >
> > $ echo 'abcdefghijkl' > 12charfile.txt
> > chomwitt@enous:~/tmp$ wc -c 12charfile.txt
> > 13 12charfile.txt
> > chomwitt@enous:~/tmp$ du --apparent-size 12charfile.txt
> > 1 12charfile.txt
> >
> > So my question is , shouldnt du report the number of chars=bytes as
> > apparent size?
> >
> > chomwitt
> >
>
> Please see the --bytes option
>
Thank you. i missed that.