nice(1) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

nice(1)

nice(1)                          User Commands                         nice(1)



NAME
       nice - invoke a command with an altered scheduling priority

SYNOPSIS
       /usr/bin/nice [-increment | -n increment | --adjustment=increment]
                   command [argument]...


       /usr/bin/nice


       /usr/xpg4/bin/nice [-increment | -n increment] command
            [argument]...

   csh Builtin
       nice [-increment | +increment] [command]

DESCRIPTION
       The nice utility invokes command, requesting that it be run with a dif‐
       ferent system scheduling priority. The priocntl(1) command  is  a  more
       general interface to scheduler functions.


       The invoking process (generally the user's shell) must be in a schedul‐
       ing class that supports nice.


       If the C shell (see csh(1)) is used, the csh built-in version  of  nice
       will  be invoked unless the full path of the nice utility is specified.
       See csh Builtin below.

   /usr/bin/nice
       If nice executes commands with arguments, it  uses  the  default  shell
       /usr/bin/sh (see sh(1)).

   /usr/xpg4/bin/nice
       If nice executes commands with arguments, it uses /usr/xpg4/bin/sh (see
       ksh88(1)).

   csh Builtin
       nice is also a csh built-in command with behavior  different  from  the
       utility versions. See csh(1) for description.

OPTIONS
       With no options, the nice utility reports the nice level of the current
       process.


       The following options are supported:

       -increment | -n increment |
       --adjustment=increment

           increment is a positive or negative decimal integer  that  has  the
           same  effect  on the execution of the utility as if the utility had
           called the nice() function with the numeric value of the  increment
           option-argument. See nice(2). nice() errors, other than EINVAL, are
           ignored. If not specified, an increment of 10 is assumed.

           Running commands with priority higher than normal by using a  nega‐
           tive increment such as -10 requires the {PRIV_PROC_PRIOCNTL} privi‐
           lege. A negative increment assigned  by  an  unprivileged  user  is
           ignored.



       --help

           Displays a usage message and exits.


OPERANDS
       The following operands are supported:

       command     The  name  of  a  command that is to be invoked. If command
                   names  any  of  the   special   built-in   utilities   (see
                   shell_builtins(1)), the results are undefined.


       argument    Any string to be supplied as an argument when invoking com‐
                   mand.


ENVIRONMENT VARIABLES
       See environ(7) for descriptions of the following environment  variables
       that affect the execution of nice: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES,
       PATH, and NLSPATH.

EXIT STATUS
       If command is invoked, the exit status of nice will be the exit  status
       of command. Otherwise, nice will exit with one of the following values:

       1-125    An error occurred.


       126      command was found but could not be invoked.


       127      command could not be found.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

   /usr/bin/nice
       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/core-os  _  CSIEnabled  _  Interface
       StabilityCommitted


   /usr/xpg4/bin/nice
       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/xopen/xcu4 _ CSIEnabled _  Interface
       StabilityCommitted _ StandardSee standards(7).


SEE ALSO
       csh(1),    ksh88(1),    nohup(1),    priocntl(1),   renice(1),   sh(1),
       shell_builtins(1), nice(2), attributes(7),  environ(7),  privileges(7),
       standards(7)

HISTORY
       Support for the --adjustment and --help options, as well as for running
       nice with no options to print the current  level,  were  added  to  the
       Solaris nice command in Oracle Solaris 11.4.0.


       The  -n  option and /usr/xpg4/bin/nice command were added to Solaris in
       Solaris 2.5.


       The nice command has been included in all versions of SunOS & Solaris.



Oracle Solaris 11.4               3 Nov 2021                           nice(1)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3