Back to the learning path

nice

nice: being nice to other processes by lowering your priority Command details
Step 1/1: Start at a lower priority

Every process has a nice value from -20 to 19, 0 by default; the higher it is, the lower the priority, giving way when the CPU is busy. nice -n 10 COMMAND starts a command at nice 10. Ordinary users may only raise it; lowering it (negative values) needs root.

$ nice -n 10 ./build.sh
Fundamentalsniceprocess
Run at a lower priority
Run sleep 600 in the background with a nice value of 19 (the higher the nice value, the lower the priority: the "nicer" it is).

This exercise needs real Linux

The commands it uses (processes, networking and more) are not in the simulator. Switch to real Linux and the exercise runs in a real Linux system inside your browser.