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. Values are in 1024-byte increments unless otherwise indicated.
Options
- --
Consider all subsequent strings to be arguments, not options.
- -a
Print all current limits.
- -H
Hard resource limit.
- -S
Soft resource limit.
Specific limits
These options limit specific resource sizes.
- -c
Core files.
- -d
Size of processes’ data segments.
- -f
Size of shell-created files.
- -l
Size of memory that the process can lock.
- -m
Resident set size.
- -n
Number of file descriptors. On many systems, this cannot be set.
- -p
Pipe size, measured in blocks of 512 bytes.
- -s
Stack size.
- -t
Amount of CPU time, counted in seconds.
- -u
Number of processes per user.
- -v
Virtual memory used by shell.
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