LPI Exam Questions

Which command prints or adjusts the current limits on resources available to the shell and to proces

Which command prints or adjusts the current limits on resources available to the shell and to processes started by it, such as the maximum size of a core file or the maximum number of processes running?

(Enter only the command, without path or options)

Answer: ulimit

Explanation/Reference:
From the man pages:
ulimit [-HSTabcdefilmnpqrstuvx [limit]]
Provides control over the resources available to the shell and to processes started by it, on systems that allow such control. The -H and -S options specify that the hard or soft limit is set for the given resource. A hard limit cannot be increased by a non-root user once it is set; a soft limit may be increased up to the value of the hard limit. If neither -H nor -S is specified, both the soft and hard  limits are set. The value of limit can be a number in the unit specified for the resource or one of the special values hard, soft, or unlimited, which stand for the current hard  limit, the current soft limit, and no limit, respectively. If limit is omitted, the current value of the soft limit of the resource is printed, unless the -H option is given. When more than one resource is specified, the limit name and unit are printed before the value.