mdco version three
[unix-history] / usr / src / usr.bin / nice / nice.1
CommitLineData
b5dc1377
CL
1.\" Copyright (c) 1980, 1990 The Regents of the University of California.
2.\" All rights reserved.
36b987e5 3.\"
b5dc1377 4.\" %sccs.include.redist.man%
36b987e5 5.\"
d0719240 6.\" @(#)nice.1 6.6 (Berkeley) %G%
b5dc1377 7.\"
ee9b0a0a
CL
8.Vx
9.Vx
b5dc1377
CL
10.Dd
11.Dt NICE 1
12.Os BSD 4
13.Sh NAME
14.Nm nice
15.Nd execute a command at a low scheduling priority
16.Sh SYNOPSIS
17.Nm nice
18.Oo
19.Op Fl Ar number
20.Oo
21.Ar command
22.Op Ar arguments
23.Sh DESCRIPTION
24.Nm Nice
25runs
26.Ar command
27at a low priority.
28(Think of low and slow).
29If
30.Ar \-number
31is specified, and if it is greater than or equal
32to 10 (the default),
33.Nm nice
34will execute
35.Ar command
36at that priority.
37The upper bound, or lowest priority that
38.Nm nice
39will run a command is 20.
40The lower bounds or
41higher priorities (integers less than 10)
42can only be requested by the super-user.
43Negative numbers are expressed as
44.Ar \-\-number.
45.Pp
46The returned exit status is the exit value from the
47command executed by
48.Nm nice .
49.Sh SEE ALSO
50.Xr csh 1 ,
b5dc1377
CL
51.Xr renice 8
52.Sh HISTORY
53.Nm Nice
54appeared in Version 6 AT&T UNIX.
55.Sh BUGS
56.Nm Nice
1cc467a3 57is particular to
b5dc1377 58.Xr sh 1 .
36b987e5 59If you use
b5dc1377 60.Xr csh 1 ,
36b987e5
KM
61then commands executed with ``&'' are automatically immune to hangup
62signals while in the background.
b5dc1377
CL
63.Pp
64.Nm Nice
36b987e5 65is built into
b5dc1377 66.Xr csh 1
36b987e5
KM
67with a slightly different syntax than described here. The form
68``nice +10'' nices to positive nice, and ``nice \-10'' can be used
69by the super-user to give a process more of the processor.