Name
ulimit
Synopsis
ulimit [options] [n]
Print the value of one or more resource limits, or, if
n is specified, set a resource limit to
n. Resource limits can be either hard
(-H) or soft (-S). By default,
ulimit sets both limits or prints
the soft limit. The options determine which resource is acted
on.
Options
-HHard limit. Anyone can lower a hard limit; only privileged users can raise it.
-SSoft limit. Must be less than or equal to the hard limit.
-aPrint all limits.
-cMaximum size of core files.
-dMaximum kilobytes of data segment or heap.
-fMaximum size of files (the default option).
-iMaximum number of pending signals.
-lMaximum size of address space that can be locked in memory.
-mMaximum kilobytes of physical memory. (Not effective on all Unix systems.)
-nMaximum number of file descriptors.
-pSize of pipe buffers. (Not effective on all Unix systems.)
-qMaximum number of bytes in POSIX message queues.
-sMaximum kilobytes of stack segment.
-tMaximum CPU seconds.
-uMaximum number of processes a single user can have.
-vMaximum kilobytes of virtual memory.
-xMaximum number of file locks.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access