2015-12-31 00:27:57 +02:00
|
|
|
# ulimit
|
|
|
|
|
2025-03-10 05:35:43 +02:00
|
|
|
> Get and set resource limits for user processes.
|
2025-06-07 11:39:40 +00:00
|
|
|
> It is a shell builtin hence not shell-agnostic.
|
2025-04-22 06:20:48 +03:00
|
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-ulimit>.
|
2015-12-31 00:27:57 +02:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Get the properties of all the user limits:
|
2015-12-31 00:27:57 +02:00
|
|
|
|
|
|
|
`ulimit -a`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Get hard limit for the number of simultaneously opened files:
|
2015-12-31 00:27:57 +02:00
|
|
|
|
|
|
|
`ulimit -H -n`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Get soft limit for the number of simultaneously opened files:
|
2015-12-31 00:27:57 +02:00
|
|
|
|
2016-01-02 10:43:05 +00:00
|
|
|
`ulimit -S -n`
|
2015-12-31 00:27:57 +02:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Set max per-user process limit:
|
2015-12-31 00:27:57 +02:00
|
|
|
|
|
|
|
`ulimit -u 30`
|
2025-03-26 00:36:41 +02:00
|
|
|
|
2025-06-07 11:39:40 +00:00
|
|
|
- Display help (Bash only):
|
2025-03-26 00:36:41 +02:00
|
|
|
|
|
|
|
`help ulimit`
|