nice(1)								      nice(1)



NAME

  nice - Runs a command at a different priority

SYNOPSIS

  Current syntax


       nice [-n priority] command [argument ...]

  Obsolescent syntax


       nice [-priority] command [argument ...]

FLAGS

  -n priority
      Specifies how the system scheduling priority of the executed utility is
      adjusted.	 The priority argument is a positive or negative decimal
      integer.	Positive priority values cause a lower or unchanged system
      scheduling priority.  Negative priority values might require appropri-
      ate privileges and cause a higher or unchanged system scheduling prior-
      ity.

  -priority
      Specifies how the system scheduling priority of the executed utility is
      adjusted.	 (Obsolescent)

DESCRIPTION

  The nice command lets you run the specified command at a lower priority.
  The value of priority can range from 1 to 19, with 19 being the lowest
  priority.  The default value of priority is 10.

  If you have superuser authority, you can run commands at a higher priority
  by specifying priority as a negative number; for example, -10.

EXAMPLES

   1.  To run a low priority command in the background, enter:
	    nice  cc  -c  *.c  &


       This runs the command cc -c *.c at low priority in the background.
       Your terminal is free so that you can run other commands while cc is
       running.	 See the sh command for details about starting background
       processes with an & (ampersand).

   2.  To specify a very low priority, enter:
	    nice -n 15	cc  -c	*.c  &


       This runs cc in the background at a priority that is even lower than
       the default priority set by nice.

   3.  To specify a very high priority (ksh and sh only), enter:
	    nice -n -10	 wall  <