On Mon, 31 Jan 2022 15:27:32 +0000
Pádraig Brady <p...@draigbrady.com> wrote:

> On 31/01/2022 09:28, chomw...@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.

Reply via email to