Back to the command reference

renice

ProcessesAdvanced In real Linux

Change the priority of running processes

Name: renice: set niceness again

This command needs a real Linux system; you can practise it in real Linux mode.

Description

renice changes the niceness of running processes, chosen by PID, user or process group. As with nice, raising priority needs root.

Syntax

renice PRIORITY [-p] PID...

Common options

-n / --priority NThe new priority (-20 highest, 19 lowest)
-p / --pidBy process ID
-g / --pgrpThe numbers are process group IDs
-u / --userAll processes of a user

Examples

  • $ renice 10 -p 1234

    Lower the priority of 1234

    Explain
  • $ sudo renice -5 -p 1234

    Raising priority needs root

    Explain

Related