Files
docker.softwareshinobi.com/docs/Linux-Commands/.recycle/117-the-nice-command.md
Software Shinobi f1997cab0f
All checks were successful
code.softwareshinobi.com-learn/docker.softwareshinobi.com/pipeline/head This commit looks good
automated terminal push
2025-06-04 11:50:30 -04:00

745 B
Executable File

The nice/renice command

The nice/renice commands is used to modify the priority of the program to be executed. The priority range is between -20 and 19 where 19 is the lowest priority.

Examples:

  1. Running cc command in the background with a lower priority than default (slower):
nice -n 15 cc -c *.c &
  1. Increase the priority to all processes belonging to group "test":
renice --20 -g test

Syntax:

nice [  -Increment|  -n Increment ] Command [ Argument ... ]

Flags :

Short Flag Long Flag Description
-Increment - Increment is the value of priority you want to assign.
-n Increment - Same as -Increment