Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-23 00:20:07 +00:00
parent a49466c200
commit cd59a77dc8
31 changed files with 239 additions and 130 deletions

View File

@@ -10,14 +10,18 @@ source: https://github.com/tldr-pages/tldr.git
> See also: `nice`.
> More information: <https://manned.org/renice>.
- Increase/decrease the priority of a running [p]rocess:
- Set the absolute priority of a running process:
`renice -n {{3}} -p {{pid}}`
`renice --priority {{3}} {{[-p|--pid]}} {{pid}}`
- Increase/decrease the priority of all processes owned by a [u]ser:
- Increase the priority of a running process:
`renice -n {{-4}} -u {{uid|user}}`
`sudo renice --relative {{-4}} {{[-p|--pid]}} {{pid}}`
- Increase/decrease the priority of all processes that belong to a process [g]roup:
- Decrease the priority of all processes owned by a user:
`renice -n {{5}} -g {{process_group}}`
`renice --relative {{4}} {{[-u|--user]}} {{uid|user}}`
- Set the priority of all processes that belong to a process group:
`sudo renice {{-5}} {{[-g|--pgrp]}} {{process_group}}`