Files
tldr/pages.zh/linux/prlimit.md

17 lines
465 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# prlimit
> 获取或设置进程资源的软限制和硬限制。
> 给定一个进程ID和一个或多个资源prlimit尝试检索和/或修改限制。
> 更多信息: <https://manned.org/prlimit>。
- 显示运行的父进程的所有当前资源的限制值:
`prlimit`
- 显示指定进程的所有当前资源的限制值:
`prlimit --pid {{pid_number}}`
- 使用自定义的打开文件限制运行命令:
`prlimit --nofile={{10}} {{command}}`