|
From: | Pádraig Brady |
Subject: | Re: du's apparent-size options doesnt display correct file size. |
Date: | Mon, 31 Jan 2022 15:27:32 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Thunderbird/95.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |