Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 287 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 287 Bytes

rlimit_fsize

Limits the maximum size of a file which may be written.

usage

$ ./rlimit_fsize 3 sh
$ echo -n 'A' >> file1
$ echo -n 'AA' >> file2
$ echo -n 'AAA' >> file3
$ echo -n 'AAAA' >> file4
[1]    19170 file size limit exceeded (core dumped)  ./rlimit_fsize 3 sh