Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
NICE(1)			  BSD General Commands Manual		       NICE(1)

NAME
     nice -- execute a command at a low	scheduling priority

SYNOPSIS
     nice [-number] command [arguments]

DESCRIPTION
     Nice runs command at a low	priority.  (Think of low and slow).  If
     -number is	not given, nice	assumes	the value 10.  The priority is a value
     in	the range -20 to 20.  The default priority is 0, priority 20 is	the
     lowest possible.  Nice will execute command at priority number relative
     to	the priority of	nice.  Higher priorities than the current process pri-
     ority can only requested by the super-user.  Negative numbers are ex-
     pressed as	--number.

     The returned exit status is the exit value	from the command executed by
     nice.

     Some shells may provide a builtin nice command which is similar or	iden-
     tical to this utility.  Consult the builtin(1) manual page.

EXAMPLES
     $ nice -5 date

     Execute command `date' at priority	5 assuming the priority	of the shell
     is	0.

     # nice -16	nice --35 date

     Execute command `date' at priority	-19 assuming the priority of the shell
     is	0 and you are the super-user.

SEE ALSO
     builtin(1), csh(1), idprio(1), rtprio(1), getpriority(2), setpriority(2),
     renice(8)

HISTORY
     A nice command appeared in	Version	6 AT&T UNIX.

BSD				 June 6, 1993				   BSD

NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | SEE ALSO | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=nice&manpath=FreeBSD+4.6.2-RELEASE>

home | help