Intermediate
Package: coreutils / util-linux
nice / renice
Start or adjust a process's scheduling priority.
Syntax
nice -n adjustment command | renice adjustment -p pid
Description
nice launches a new command with a given priority (niceness, from -20 highest to 19 lowest), while renice changes the priority of a process that is already running. Lower niceness means higher scheduling priority.
Examples
nice -n 10 ./backup.sh
Start a script with a lower CPU priority
renice 5 -p 1234
Lower the priority of an already-running process
renice -5 -p 1234
Raise priority (requires root for negative values)