Skip to main content
Post Closed as "Duplicate" by muru, G-Man Says 'Reinstate Monica', CommunityBot, Rui F Ribeiro
I think you mean stat -c %B (on GNU stat). without -c, %B would be a filename
Source Link
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.

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

stat '%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.

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.

edited tags
Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k
Source Link
Tim
  • 106.8k
  • 234
  • 651
  • 1.1k

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

stat '%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.