This command sets limits on specified resources used by a
spawned or child process (subprocess).
The syntax is:
where n is the size to be set depending
on the type of limit set by the option -f.
A list of those options follow. If no option is given, -f
is assumed. If n is not given, the current
limit is printed.
To see the current limit, type:
$ ulimit
To change the size of file the current process or a spawned
process can create, type:
$ ulimit -f 1000
where:
- -f
imposes a size limit of n
blocks on files written by child processes (files of any size may
be read)