System Administration Guide

How to Change the Priority of a Process

You can raise or lower the priority of a command or a process by changing the nice number. To lower the priority of a process:

/usr/bin/nice command_name

Increase the nice number by four units (the default)

/usr/bin/nice +4 command_name

Increase the nice number by four units

/usr/bin/nice -10 command_name

Increase the nice number by ten units

The first and second commands increase the nice number by four units (the default); and the third command increases the nice by ten units, lowering the priority of the process.

The following commands raise the priority of the command by lowering the nice number.

To raise the priority of a process:

/usr/bin/nice -10 command_name

Raises the priority of the command by lowering the nice number

/usr/bin/nice - -10 command_name

Raises the priority of the command by lowering the nice number. The first minus sign is the option sign, and the second minus sign indicates a negative number.

The above commands raise the priority of the command, command_name, by lowering the nice number. Note that in the second case, the two minus signs are required.