Linux and Unix nice command

Quick links

About nice
Syntax
Examples
Related commands
Linux and Unix main page

About nice

Invokes a command with an altered scheduling priority.

Syntax

nice [-increment | -n increment ] command [argument ... ]

-increment | -n increment increment must be in the range 1-19; if not specified, an increment of 10 is assumed. An increment greater than 19 is equivalent to 19.

The super-user may run commands with priority higher than normal by using a negative increment such as -10. A negative increment assigned by an unprivileged user is ignored.

command The name of a command that is to be invoked. If command names any of the special built-in utilities, the results are undefined.
argument Any string to be supplied as an argument when invoking command.

Examples

nice +13 pico myfile.txt

Runs the pico command on myfile.txt with an increment of +13.

Related commands

csh
ksh
nohup
priocntl
sh