You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
M is for SI unit = 1,000,000 bytes. To get the same output as find, you will need to use Mi (Mebibyte) which is 1024 * 1024 bytes. Perhaps documentation could be clearer since most people are used to M as Mebibytes?
That was it. Sorry for the mistaken bug report -- I see @sharkdp added a documentation tag. I think it'd make sense to update the documentation to be more clear in regards to the filesize filters.
I have tried to improve the documentation with this respect.
since most people are used to M as Mebibytes?
Maybe they are (and historically, that might have been used), but that's definitely not what the standard has to say (SI, IEC, https://en.wikipedia.org/wiki/Kibibyte)
Describe the bug you encountered:
When using
fd
with the--size
option I'm getting inconsistent results compared tofind
.find
does not report these files.Describe what you expected to happen:
Files 100M+ would be listed and printed
What version of
fd
are you using?fd 7.4.0
Which operating system / distribution are you on?
Linux 3.10.0-962.3.2.lve1.5.26.2.el7.x86_64 x86_64
The text was updated successfully, but these errors were encountered: