No Bash, por padrão 1024 bytes, mas 512 bytes no modo POSIX ( manual ):
If no option is given, then
-f
is assumed. Values are in 1024-byte increments, except [some others] and, when in POSIX Mode (see Bash POSIX Mode),-c
and-f
, which are in 512-byte increments.
(POSIX, é claro, exige blocos de 512 bytes .)
$ bash -c 'ulimit -Sf 1000;
head -c1024000 < /dev/zero > /tmp/test && echo ok;
echo x >> /tmp/test && echo ok'
ok
File size limit exceeded