What is the purpose of "ulimit" in bash, and how does it relate to per-process resource limits enforced by the kernel?
Correct! Well done.
Incorrect.
The correct answer is A) "ulimit" is a shell builtin that gets and sets resource limits, such as max file descriptors, processes, or core dump size, for the current shell and its children, enforced by the kernel via setrlimit()/getrlimit() to prevent runaway resource use
Correct Answer
"ulimit" is a shell builtin that gets and sets resource limits, such as max file descriptors, processes, or core dump size, for the current shell and its children, enforced by the kernel via setrlimit()/getrlimit() to prevent runaway resource use
Resource limits set by "ulimit" (soft and hard limits) are enforced by the kernel for the shell and its child processes — common uses include raising the open file descriptor limit ("ulimit -n") for high-concurrency applications like database servers.