Dan <d...@nnnne-o-o-o.com> writes: > Hello, > > Here I found a strange behavior of du: > > wiz$ ls -lsa index.php > 16 -rw-r--r-- 1 user www 7412 Oct 19 2024 index.php > wiz$ du index.php > 16 index.php <-- this is weird > wiz$ du -h index.php > 8.0K index.php
Is it weird? Checking the man page for du(1): DESCRIPTION The du utility displays the file system block usage for each file argument and for each directory in the file hierarchy rooted in each directory argument. Note that the system block usage is usually greater than the actual size of the file. <snip> I'm not a file system person, but to me you're looking at different units here, are you not? > > 7.7 stable > > > Dan > > ------ > Blog: https://bsd.gaoxio.com - Repo: https://code.5mode.com > > Please reply to the mailing-list, leveraging technical stuff.