2015-12-30 23:27:57 +01:00
|
|
|
# ulimit
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Get and set user limits.
|
2015-12-30 23:27:57 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Get the properties of all the user limits:
|
2015-12-30 23:27:57 +01:00
|
|
|
|
|
|
|
`ulimit -a`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Get hard limit for the number of simultaneously opened files:
|
2015-12-30 23:27:57 +01:00
|
|
|
|
|
|
|
`ulimit -H -n`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Get soft limit for the number of simultaneously opened files:
|
2015-12-30 23:27:57 +01:00
|
|
|
|
2016-01-02 11:43:05 +01:00
|
|
|
`ulimit -S -n`
|
2015-12-30 23:27:57 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Set max per-user process limit:
|
2015-12-30 23:27:57 +01:00
|
|
|
|
|
|
|
`ulimit -u 30`
|