for the same file, the file size obtained using ll and eza -l is inconsistent. #1686
Replies: 2 comments 3 replies
-
|
I tested a few cases and it seems like it is due to the unit mismatch, where ls is using MiB, that is, MB in base 2 — 1024B, while eza using MB in base 10 = 1000B. I am at least 70% confident because of this test case: truncate -s 36500000 test.bin # POSIXThis reserves a file of size 36500000 bytes, which is around 34.8 MiB and 36.5 MB The |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
thank you @ngtv2409 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
root in a223(default) /tmp took 2s
❯ eza -l /tmp/output.csv
.rw-r--r-- 99M root 25 Dec 18:02 /tmp/output.csv
root in a223(default) /tmp
➜ ll /tmp/output.csv
-rw-r--r-- 1 root root 95M Dec 25 18:02 /tmp/output.csv
Beta Was this translation helpful? Give feedback.
All reactions