Files
cheatsheet-tldr/tldr/linux/prlimit
2025-03-29 00:18:23 +00:00

23 lines
620 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# prlimit
> Get or set process resource soft and hard limits.
> Given a process ID and one or more resources, prlimit tries to retrieve and/or modify the limits.
> More information: <https://manned.org/prlimit>.
- Display limit values for all current resources for the running parent process:
`prlimit`
- Display limit values for all current resources of a specified process:
`prlimit {{[-p|--pid]}} {{pid_number}}`
- Run a command with a custom number of open files limit:
`prlimit {{[-n|--nofile=]}}{{10}} {{command}}`