mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 06:49:03 +00:00
Update cheatsheets
This commit is contained in:
22
linux/prlimit
Normal file
22
linux/prlimit
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
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 --pid {{pid_number}}`
|
||||
|
||||
- Run a command with a custom number of open files limit:
|
||||
|
||||
`prlimit --nofile={{10}} {{command}}`
|
||||
Reference in New Issue
Block a user