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