Back to the learning path

renice

renice: set niceness again Command details
Step 1/1: Change a running process

renice -n VALUE -p PID changes the nice value of a process that is already running. pgrep finds the ID, or write renice -n 10 -p $(pgrep NAME). ps -o pid,ni,comm shows nice values.

$ renice -n 10 -p 1234
Fundamentalsreniceniceprocess
Change the priority of a running process
sleep 900 is already running. Change its nice value to 5. (Find its process ID first.)

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.

niceNext lesson:timeout