The nice command allows to schedule the execution priority of processes. In other words controls how much CPU time will assigned to a process relative to other processes, this ensures that important processes get the CPU time is necessary to operate smoothly, Lets see how this works with some examples.
Syntax
The basic syntax for the nice command is
nice -n <value> <program> <program args>
the -n parameter can take values ranging from -20 (highest priority) to 19 (lowest priority)
The default “niceness” for a process not started with nice is 0, the default “niceness” starting a program with nice but not using the -n parameter is 10 which is a lowest priority than 0.