Skip to main content
3 of 3
I think you mean stat -c %B (on GNU stat). without -c, %B would be a filename
ilkkachu
  • 147.9k
  • 16
  • 268
  • 441

What does `stat -c '%B' *` mean?

stat -c '%B' * reports the same number 512 for each file. What does %B mean? I don't understand the manual:

%B - The size in bytes of each block reported by ‘%b’

Is it related to my block size:

$ sudo blockdev --getbsz /dev/sda1
4096

Thanks.

Tim
  • 106.8k
  • 234
  • 651
  • 1.1k