nice Command Purpose Runs a command at a lower or higher priority. Syntax nice [ - Increment| -n Increment ] Command [ Argument ... ] Description The nice command lets you run a specified Command at a lower priority, or at a higher priority if you have root user authori- ty. The value of the -Increment variable can range from -20 to 20, with 20 being the lowest priority. When no Increment value is specified and only if the user has the appropriate privileges, the command is invoked with a priority less than or higher than the current process. If the user does not have the appropriate privileges to change the priority with the specified Increment, the nice command will not affect the priority, and the Command will be invoked as normal from the com- mand line. Note: The csh command contains a built-in command named nice. The /usr/bin/nice command and built-in command do not necessarily work the same way. For information on the built-in command, see the csh command. Command is the name of any executable file on the system. Flags -Increment Specifies how the priority of the command will be ad- justed. The increment is a positive or negative decimal integer that will be used to modify the priority. Positive increment values cause a lower or unchanged priority. Negative increment values may require appropriate authority and will cause a higher or unchanged priority. If the requested increment would raise or lower the priority beyond the limits (-20 to 20), then the limit whose value was exceeded is used. This flag is equivalent to the -n Increment flag. -n Increment This flag is equivalent to the -Increment flag. Examples 1. To run a command at low priority, enter: nice cc -c *.c This runs the cc command at low priority. Note: This does not run the command in the background. Your workstation is not available for doing other things. 2. To run a low-priority command in the background, enter: nice cc -c *.c & This runs the cc command at low priority in the background. Your workstation is free so that you can run other commands while the cc command is running. Refer to the Shells OverviewAIX Version 3.2 System User's Guide: Operating System and Devices for more information on background (asynchronous) processing. 3. To specify a very low priority, enter: nice -n 15 cc -c *.c & This runs the cc command in the background at a priority that is even lower than the default priority set by the nice command. 4. To specify a very high priority, enter: nice --10 wall <