2025-03-14 21:59:59 -06:00
|
|
|
# ulimit
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
> Get and set resource limits for user processes.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://manned.org/ulimit>.
|
|
|
|
|
|
|
|
|
|
- Get the properties of all the user limits:
|
|
|
|
|
|
|
|
|
|
`ulimit -a`
|
|
|
|
|
|
|
|
|
|
- Get hard limit for the number of simultaneously opened files:
|
|
|
|
|
|
|
|
|
|
`ulimit -H -n`
|
|
|
|
|
|
|
|
|
|
- Get soft limit for the number of simultaneously opened files:
|
|
|
|
|
|
|
|
|
|
`ulimit -S -n`
|
|
|
|
|
|
|
|
|
|
- Set max per-user process limit:
|
|
|
|
|
|
|
|
|
|
`ulimit -u 30`
|