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