mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 19:43:11 +00:00
30 lines
544 B
Plaintext
30 lines
544 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ulimit
|
|
|
|
> Get and set resource limits for user processes.
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-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`
|
|
|
|
- Display help:
|
|
|
|
`help ulimit`
|