commands.sh

nice

all

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 info →

Options (1)

-n, --adjustmentboolean

Define the priority with an explicit option

Example: nice {{[-n|--adjustment]}} {{niceness_value}} {{command}}

Examples (5)

Print the current niceness value

Increment the current niceness value by 10

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
made by @shridhargupta | data from tldr-pages