Ubuntu Manpages

nice

Run COMMAND with an adjusted niceness, which affects process scheduling. With no COMMAND, print the current niceness. Niceness values range from -20 (most favorable to the process) to 19 (least …

nice [-n|--adjustment] [-h|--help] [-V|--version] [COMMAND]

Run COMMAND with an adjusted niceness, which affects process scheduling. With no COMMAND, print the current niceness. Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process).

add N to the niceness (default is 10)
Print help
Print version
[COMMAND]

v(uutils coreutils) 0.10.0

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

The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.