While working in a UNIX environment via SSH today, my cohort stumbled on a seeming idiosyncrasy in the GNU findutils related to the -size flag.
When I run the ls -l command, it tells me a file is 155 bytes in size. But running find ~/ -size -1K returns no results. It only matches the file for exactly 1k.
Futhermore, I know it's not using the du result to find files because du returns 4k for the same file. What gives? It seems like memory is provided in 4k "chunks" if du is to be trusts, and that ls -l finds the "true" size of a file, but find produces radically different results than expected. Any help would be appreciated, and I am certain this has come up for others in the past, but I cannot for the life of me find a result anywhere.
Thanks!