## 发现linux命令/工具find的一个”bug”

$find ~ -type f -a -size -1K | wc -l  发现得到的数字明显比预想的小很多。但命令没错呀~~百思不得其解之下，又试了一下另一种写法。这时，就正常了，真奇怪啊~~ $ find ~ -type f -a -size -1024c | wc -l


c for bytes
K for Kilobytes (units of 1024 bytes)

The + and – prefixes signify greater than and less than, as usual. Bear in mind that the size is rounded up to the next
unit. Therefore -size -1M is not equivalent to -size -1048576c. The former only matches empty files, the latter matches
files from 1 to 1,048,575 bytes.