Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion pages/common/nice.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,25 @@

> Execute a program with a custom scheduling priority (niceness).
> Niceness values range from -20 (the highest priority) to 19 (the lowest).
> Note: Some modern schedulers ignore niceness or limit its effects inside autogroups.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/nice-invocation.html>.
- Launch a program with altered priority:
- Print the current niceness value:

`nice`

- Increment the current niceness value by 10:

`nice nice`

- Launch a program with lowered priority:

`nice -{{niceness_value}} {{command}}`

- Launch a program with heightened priority:

`sudo nice --{{niceness_value}} {{command}}`

- Define the priority with an explicit option:

`nice {{[-n|--adjustment]}} {{niceness_value}} {{command}}`
Loading