Files
cheatsheet-tldr/tldr/linux/cgexec
2025-06-29 00:23:20 +00:00

15 lines
414 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# cgexec
> Limit, measure, and control resources used by processes.
> Multiple cgroup types (aka controllers) exist, such as `cpu`, `memory`, etc.
> More information: <https://manned.org/cgexec>.
- Execute a process in a given c[g]roup with given controller:
`cgexec -g {{controller}}:{{cgroup_name}} {{process_name}}`