Forrest logo
back to the renice tool

renice:tldr:9fdfd

renice: Change priority of a running process.
$ renice -n ${niceness_value} -p ${pid}
try on your machine

The renice command is used to modify the priority (or niceness) of a running process on a Unix-like operating system. The command syntax you provided, renice -n ${niceness_value} -p ${pid}, renices (changes the priority of) a process with a specific process ID (PID) to a specified niceness value.

Here's a breakdown of each element:

  • renice: The command itself, which is used to change the priority of a process.
  • -n ${niceness_value}: The -n flag specifies the new niceness value for the process. ${niceness_value} should be replaced with the desired numerical value representing the priority. A lower value indicates a higher priority, with -20 being the highest and 19 being the lowest.
  • -p ${pid}: The -p flag is used to specify the process ID of the process that needs to be reniced. ${pid} should be replaced with the PID of the target process.

In summary, this command modifies the priority of a specific process identified by its PID (${pid}) to the desired niceness value (${niceness_value}).

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the renice tool