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 can’t 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.
Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.