ulimit – Control the resources available to processesSummary :
ulimit, Bash Built-in Command, provides fine control over the amount of resources (Virtual Mem, Max no .of process, Core file size,..) available to any processes started by the shell. Except for -t, which is in seconds, -p, which is in increments of 512 bytes, and -u, which is an unscaled number of processes, all other values are in 1024-byte increments. For example, if the maximum no. of user process is set to 5, then that user can’t run more then 5 process. Examples :
$ ulimit -a -- Show All current limits. $ ulimit -n -- Show max open files limit. $ ulimit -t -- Show max CPU time limit. $ ulimit -c -- Show core file size. $ ulimit -c 6000 -- Set new core file size. $ ulimit -u 60 -- Set max no .of processes per user to 60. It will protect the system from shell booms.
Read : info bash