Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-29 00:23:20 +00:00
parent 42ee16d1f0
commit 0b27d7dda4
118 changed files with 277 additions and 228 deletions

View File

@@ -6,28 +6,28 @@ source: https://github.com/tldr-pages/tldr.git
# cpulimit
> A tool to throttle the CPU usage of other processes.
> More information: <https://cpulimit.sourceforge.net/>.
> More information: <https://manned.org/cpulimit>.
- Limit an existing process with PID 1234 to only use 25% of the CPU:
`cpulimit --pid {{1234}} --limit {{25%}}`
`cpulimit {{[-p|--pid]}} {{1234}} {{[-l|--limit]}} {{25%}}`
- Limit an existing program by its executable name:
`cpulimit --exe {{program}} --limit {{25}}`
`cpulimit {{[-e|--exe]}} {{program}} {{[-l|--limit]}} {{25}}`
- Launch a given program and limit it to only use 50% of the CPU:
`cpulimit --limit {{50}} -- {{program argument1 argument2 ...}}`
`cpulimit {{[-l|--limit]}} {{50}} -- {{program argument1 argument2 ...}}`
- Launch a program, limit its CPU usage to 50% and run cpulimit in the background:
`cpulimit --limit {{50}} --background -- {{program}}`
`cpulimit {{[-l|--limit]}} {{50}} {{[-b|--background]}} -- {{program}}`
- Kill its process if the program's CPU usage goes over 50%:
`cpulimit --limit 50 --kill -- {{program}}`
`cpulimit {{[-l|--limit]}} 50 {{[-k|--kill]}} -- {{program}}`
- Throttle both it and its child processes so that none go about 25% CPU:
`cpulimit --limit {{25}} --monitor-forks -- {{program}}`
`cpulimit {{[-l|--limit]}} {{25}} {{[-m|--monitor-forks]}} -- {{program}}`