nice: run a program with modified scheduling priority
nice [OPTION] [COMMAND [ARG]...]
What it does
Run COMMAND with an adjusted niceness (default +10). With no COMMAND, print the current niceness. Niceness ranges from -20 (most favourable) to 19 (least).
Options you will use
-n, --adjustment=N- add N to the niceness (default 10).
Examples
$ nice -n 19 tar czf backup.tgz /srva backup that yields the CPU to everything else
Gotchas
- A negative N without root prints "nice: warning: setpriority: Permission denied" and still runs the command, at the old niceness.
Try nice in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.