[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
du's apparent-size options doesnt display correct file size.
From: |
chomwitt |
Subject: |
du's apparent-size options doesnt display correct file size. |
Date: |
Mon, 31 Jan 2022 09:28:52 +0000 |
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
- du's apparent-size options doesnt display correct file size.,
chomwitt <=