Translations by Mingye Wang

Mingye Wang has submitted the following strings to this translation. Contributions are visually coded: currently used translations, unreviewed suggestions, rejected suggestions.

5187 of 87 results
438.
bind [-lpsvPSVX] [-m keymap] [-f filename] [-q name] [-u name] [-r keyseq] [-x keyseq:shell-command] [keyseq:readline-function or readline-command]
2017-02-17
bind [-lpvsPSVX] [-m 键映射] [-f 文件名] [-q 名称] [-u 名称] [-r 键序列] [-x 键序列:shell-命令] [键序列:readline-函数 或 readline-命令]
443.
cd [-L|[-P [-e]] [-@]] [dir]
2017-02-17
cd [-L|[-P [-e]] [-@]] [目录]
446.
declare [-aAfFgilnrtux] [-p] [name[=value] ...]
2017-02-17
declare [-aAfFgilnrtux] [-p] [名称[=值] ...]
447.
typeset [-aAfFgilnrtux] [-p] name[=value] ...
2017-05-17
typeset [-aAfFgilnrtux] [-p] 名称[=值] ...
470.
unset [-f] [-v] [-n] [name ...]
2017-02-17
unset [-f] [-v] [-n] [名称 ...]
481.
ulimit [-SHabcdefiklmnpqrstuvxPT] [limit]
2017-05-17
ulimit [-SHabcdefiklmnpqrstuvxPT] [限制]
484.
wait [pid ...]
2017-02-17
wait [进程号 ...]
506.
compgen [-abcdefgjksuv] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [word]
2017-05-17
compgen [-abcdefgjksuv] [-o 选项] [-A 动作] [-G 全局模式] [-W 词语列表] [-F 函数] [-C 命令] [-X 过滤模式] [-P 前缀] [-S 后缀] [词语]
508.
mapfile [-d delim] [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
2017-05-17
mapfile [-d 分隔符] [-n 计数] [-O 起始序号] [-s 计数] [-t] [-u fd] [-C 回调] [-c 量子] [数组]
510.
Define or display aliases. Without arguments, `alias' prints the list of aliases in the reusable form `alias NAME=VALUE' on standard output. Otherwise, an alias is defined for each NAME whose VALUE is given. A trailing space in VALUE causes the next word to be checked for alias substitution when the alias is expanded. Options: -p print all defined aliases in a reusable format Exit Status: alias returns true unless a NAME is supplied for which no alias has been defined.
2017-05-17
定义或显示别名。 不带参数时,`alias' 以可重用的格式 `alias 名称=值'在标准输出设备上打印别名列表。 否则,对于每个给定值的名称定义一个别名。 值末尾的空格会使下一个词被检测作为别名替换展开。 选项: -p 以可重用的格式打印所有的已定义的别名 退出状态: 除非一个没有定义的名字被作为参数提供,否则 alias 返回值为真。
511.
Remove each NAME from the list of defined aliases. Options: -a remove all alias definitions Return success unless a NAME is not an existing alias.
2017-05-17
从别名定义列表中删除每一个“名字”。 选项: -a 删除所有的别名定义。 返回成功,除非“名字“不是一个已存在的别名。
512.
Set Readline key bindings and variables. Bind a key sequence to a Readline function or a macro, or set a Readline variable. The non-option argument syntax is equivalent to that found in ~/.inputrc, but must be passed as a single argument: e.g., bind '"\C-x\C-r": re-read-init-file'. Options: -m keymap Use KEYMAP as the keymap for the duration of this command. Acceptable keymap names are emacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move, vi-command, and vi-insert. -l List names of functions. -P List function names and bindings. -p List functions and bindings in a form that can be reused as input. -S List key sequences that invoke macros and their values -s List key sequences that invoke macros and their values in a form that can be reused as input. -V List variable names and values -v List variable names and values in a form that can be reused as input. -q function-name Query about which keys invoke the named function. -u function-name Unbind all keys which are bound to the named function. -r keyseq Remove the binding for KEYSEQ. -f filename Read key bindings from FILENAME. -x keyseq:shell-command Cause SHELL-COMMAND to be executed when KEYSEQ is entered. -X List key sequences bound with -x and associated commands in a form that can be reused as input. Exit Status: bind returns 0 unless an unrecognized option is given or an error occurs.
2017-05-17
设定 Readline 键绑定和变量。 绑定一个键序列到一个 Readline 函数或者宏,或者设定一个 Readline 变量。非选项参数的语法和 ~/.inputrc 文件中的等 同,但是必须作为一个参数被传递, 例如,bind '"\C-x\C-r": re-read-init-file'. 选项: -m 键映射 在此命令执行过程中使用指定的键映射。 可被接受的键映射名字有 emacs、emacs-standard、emacs-meta、 emacs-ctlx、vi、vi-move、vi-command、和 vi-insert。 -l 列出函数名称。 -P 列出函数名称和绑定。 -p 以可以重新用作输入的格式列出函数名称和绑定。 -S 列出可以启动宏的键序列以及它们的值 -s 以可以重新用作输入的格式列出可以启动宏的键以及它们的值。 -V 列出变量名成和它们的值 -v 以可以重新用作输入的格式列出变量的名称和它们的值 -q 函数名 查询指定的函数可以由哪些键启动。 -u 函数名 反绑定所有绑定至指定函数的键。 -r 键序列 取消指定键序列的绑定。 -f 文件名 从指定文件中读取键绑定。 -x 键序列:shell命令 当指定的键序列被输入时,执行指定的 shell 命令。 -X 以可被重用的形式列出用 -x 绑定的键序列和命令。 退出状态: 除非使用了无法辨认的选项或者错误发生,否则返回0.
513.
Exit for, while, or until loops. Exit a FOR, WHILE or UNTIL loop. If N is specified, break N enclosing loops. Exit Status: The exit status is 0 unless N is not greater than or equal to 1.
2017-02-17
退出 for、while 或 until 循环 退出一个 FOR、WHILE 或 UNTIL 循环。如果指定了N,则跳出N重 循环 退出状态: 退出状态为0除非 N 不大于或等于 1。
514.
Resume for, while, or until loops. Resumes the next iteration of the enclosing FOR, WHILE or UNTIL loop. If N is specified, resumes the Nth enclosing loop. Exit Status: The exit status is 0 unless N is not greater than or equal to 1.
2017-02-17
继续 for、while 或 until 循环。 继续当前 FOR、WHILE 或 UNTIL 循环的下一步。 如果指定了 N, 则继续当前的第 N 重循环。 退出状态: 退出状态为 0 除非 N 不大于或等于1。
517.
Change the shell working directory. Change the current directory to DIR. The default DIR is the value of the HOME shell variable. The variable CDPATH defines the search path for the directory containing DIR. Alternative directory names in CDPATH are separated by a colon (:). A null directory name is the same as the current directory. If DIR begins with a slash (/), then CDPATH is not used. If the directory is not found, and the shell option `cdable_vars' is set, the word is assumed to be a variable name. If that variable has a value, its value is used for DIR. Options: -L force symbolic links to be followed: resolve symbolic links in DIR after processing instances of `..' -P use the physical directory structure without following symbolic links: resolve symbolic links in DIR before processing instances of `..' -e if the -P option is supplied, and the current working directory cannot be determined successfully, exit with a non-zero status -@ on systems that support it, present a file with extended attributes as a directory containing the file attributes The default is to follow symbolic links, as if `-L' were specified. `..' is processed by removing the immediately previous pathname component back to a slash or the beginning of DIR. Exit Status: Returns 0 if the directory is changed, and if $PWD is set successfully when -P is used; non-zero otherwise.
2017-05-17
改变 shell 工作目录。 改变当前目录至 DIR 目录。默认的 DIR 目录是 shell 变量 HOME 的值。 变量 CDPATH 定义了含有 DIR 的目录的搜索路径,其中不同的目录名称由冒号 (:)分隔。 一个空的目录名称表示当前目录。如果要切换到的 DIR 由斜杠 (/) 开头,则 CDPATH 变量不会被使用。 如果路径找不到,并且 shell 选项 `cdable_vars' 被设定,则参数词被假定为一个 变量名。如果该变量有值,则它的值被当作 DIR 目录。 选项: -L 强制跟随符号链接: 在处理 `..' 之后解析 DIR 中的符号链接。 -P 使用物理目录结构而不跟随符号链接: 在处理 `..' 之前解析 DIR 中的符号链接。 -e 如果使用了 -P 参数,但不能成功确定当前工作目录时,返回非零的返回值。 -@ 在支持拓展属性的系统上,将一个有这些属性的文件当作有文件属性的目录。 默认情况下跟随符号链接,如同指定 `-L'。 `..' 使用移除向前相邻目录名成员直到 DIR 开始或一个斜杠的方式处理。 退出状态: 如果目录改变,或在使用 -P 选项时 $PWD 修改成功时返回 0,否则非零。
518.
Print the name of the current working directory. Options: -L print the value of $PWD if it names the current working directory -P print the physical directory, without any symbolic links By default, `pwd' behaves as if `-L' were specified. Exit Status: Returns 0 unless an invalid option is given or the current directory cannot be read.
2017-05-17
打印当前工作目录的名字。 选项: -L 打印 $PWD 变量的值,如果它包含了当前的工作目录 -P 打印当前的物理路径,不带有任何的符号链接 默认情况下,`pwd' 的行为和带 `-L' 选项一致 退出状态: 除非使用了无效选项或者当前目录不可读,否则返回状态为0。
522.
Execute a simple command or display information about commands. Runs COMMAND with ARGS suppressing shell function lookup, or display information about the specified COMMANDs. Can be used to invoke commands on disk when a function with the same name exists. Options: -p use a default value for PATH that is guaranteed to find all of the standard utilities -v print a description of COMMAND similar to the `type' builtin -V print a more verbose description of each COMMAND Exit Status: Returns exit status of COMMAND, or failure if COMMAND is not found.
2017-05-17
执行一个简单命令或者显示命令的相关信息。 带 ARGS 参数运行 COMMAND 命令且抑制 shell 函数查询,或显示 指定的 COMMAND 命令的信息。可以在存在相同名称的函数定义的 情况下被用于启动磁盘上的命令。 选项: -p 使用 PATH 变量的一个默认值以确保所有的标准工具都能被找到。 -v 打印 COMMAND 命令的描述,和 `type' 内建相似 -V 打印每个 COMMAND 命令的详细描述 退出状态 返回 COMMAND 命令的返回状态,或者当找不到 COMMAND 命令时失败。
525.
Define local variables. Create a local variable called NAME, and give it VALUE. OPTION can be any option accepted by `declare'. Local variables can only be used within a function; they are visible only to the function where they are defined and its children. Exit Status: Returns success unless an invalid option is supplied, a variable assignment error occurs, or the shell is not executing a function.
2017-02-17
定义本地变量。 创建一个以 NAME 为名称的变量,并且将 VALUE 赋值给它。 OPTION 选项可以是任何能被 `declare' 接受的选项。 本地变量只能在函数内部被使用,它们只能在定义它们的函数内 部以及子函数中可见。 退出状态: 返回成功,除非使用了无效的选项、发生了赋值错误或者 shell 不在执行一个函数。
531.
Replace the shell with the given command. Execute COMMAND, replacing this shell with the specified program. ARGUMENTS become the arguments to COMMAND. If COMMAND is not specified, any redirections take effect in the current shell. Options: -a name pass NAME as the zeroth argument to COMMAND -c execute COMMAND with an empty environment -l place a dash in the zeroth argument to COMMAND If the command cannot be executed, a non-interactive shell exits, unless the shell option `execfail' is set. Exit Status: Returns success unless COMMAND is not found or a redirection error occurs.
2017-05-17
使用指定命令替换 shell。 执行 COMMAND 命令,以指定的程序替换这个 shell。 ARGUMENTS 参数成为 COMMAND命令的参数。如果 没有指定COMMAND 命令,则任何的重定向在当前 shell 中生效。 选项: -a 名称 作为第0个参数传递给 COMMAND 命令 -c 在一个空环境中执行 COMMAND 命令 -l 在COMMAND 命令的第0个参数中加一个短线 如果命令不能被执行,则退出一个非交互式的 shell,除非 shell 选项`execfail' 已经设定。 退出状态: 返回成功除非 COMMAND 命令没有找到或者出现一个重定向错误。
537.
Remember or display program locations. Determine and remember the full pathname of each command NAME. If no arguments are given, information about remembered commands is displayed. Options: -d forget the remembered location of each NAME -l display in a format that may be reused as input -p pathname use PATHNAME as the full pathname of NAME -r forget all remembered locations -t print the remembered location of each NAME, preceding each location with the corresponding NAME if multiple NAMEs are given Arguments: NAME Each NAME is searched for in $PATH and added to the list of remembered commands. Exit Status: Returns success unless NAME is not found or an invalid option is given.
2017-05-17
记住或显示程序位置。 确定并记住每一个给定 NAME 名称的命令的完整路径。 如果不提供参数,则显示已经记住的命令的信息。 选项: -d 忘记每一个已经记住的 NAME 的位置 -l 以可作为输入重用的格式显示 -p pathname 使用 pathname 路径作为 NAME 命令的全路径 -r 忘记所有记住的位置 -t 打印记住的每一个 NAME 名称的位置,如果指定了多个 NAME 名称,则每个位置前面会加上相应的 NAME 名称 参数: NAME 每个 NAME 名称会在 $PATH 路径变量中被搜索,并且添加到记住的命令 列表中。 退出状态: 返回成功,除非 NAME 命令没有找到或者使用了无效的选项。
540.
Display status of jobs. Lists the active jobs. JOBSPEC restricts output to that job. Without options, the status of all active jobs is displayed. Options: -l lists process IDs in addition to the normal information -n lists only processes that have changed status since the last notification -p lists process IDs only -r restrict output to running jobs -s restrict output to stopped jobs If -x is supplied, COMMAND is run after all job specifications that appear in ARGS have been replaced with the process ID of that job's process group leader. Exit Status: Returns success unless an invalid option is given or an error occurs. If -x is used, returns the exit status of COMMAND.
2017-05-17
显示任务状态。 列出活动的任务。JOBSPEC 限制仅输出指定的任务。 不带选项时,所有活动任务的状态都会显示。 选项: -l 在正常信息基础上列出进程号 -n 仅列出上次通告之后改变了状态的进程 -p 仅列出进程号 -r 限制仅输出运行中的任务 -s 限制仅输出停止的任务 如果使用了 -x 选项,ARG 参数中的所有任务声明会被替换为该任务 的进程组头领的进程号,然后执行 COMMAND 命令。 退出状态: 返回成功,除非使用了无效的选项或者有错误发生。 如果使用 -x 选项,则返回 COMMAND 命令的退出状态。
541.
Remove jobs from current shell. Removes each JOBSPEC argument from the table of active jobs. Without any JOBSPECs, the shell uses its notion of the current job. Options: -a remove all jobs if JOBSPEC is not supplied -h mark each JOBSPEC so that SIGHUP is not sent to the job if the shell receives a SIGHUP -r remove only running jobs Exit Status: Returns success unless an invalid option or JOBSPEC is given.
2017-05-17
从当前 shell 中删除任务。 从活动任务表中删除每一个 JOBSPEC 参数。不带任何 JOBSPEC 参数时,shell 使用观念中的当前任务。 选项: -a 如果不提供 JOBSPEC 参数,则删除所有任务 -h 标识每个 JOBSPEC 任务,从而当 shell 接收到 SIGHUP 信号时不发送 SIGHUP 给指定任务 -r 仅删除运行中的任务 退出状态: 返回成功除非使用了无效的选项或者 JOBSPEC 声明。
543.
Evaluate arithmetic expressions. Evaluate each ARG as an arithmetic expression. Evaluation is done in fixed-width integers with no check for overflow, though division by 0 is trapped and flagged as an error. The following list of operators is grouped into levels of equal-precedence operators. The levels are listed in order of decreasing precedence. id++, id-- variable post-increment, post-decrement ++id, --id variable pre-increment, pre-decrement -, + unary minus, plus !, ~ logical and bitwise negation ** exponentiation *, /, % multiplication, division, remainder +, - addition, subtraction <<, >> left and right bitwise shifts <=, >=, <, > comparison ==, != equality, inequality & bitwise AND ^ bitwise XOR | bitwise OR && logical AND || logical OR expr ? expr : expr conditional operator =, *=, /=, %=, +=, -=, <<=, >>=, &=, ^=, |= assignment Shell variables are allowed as operands. The name of the variable is replaced by its value (coerced to a fixed-width integer) within an expression. The variable need not have its integer attribute turned on to be used in an expression. Operators are evaluated in order of precedence. Sub-expressions in parentheses are evaluated first and may override the precedence rules above. Exit Status: If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise.
2017-02-17
估值算术表达式。 将每个 ARG 参赛作为算术表达式来估值。估值的计算以定宽的整 数完成,不带溢出检测,不过除 0 是被置陷阱的并且会报一个错 误。下列操作符被按照相同的算术优先级组合。列表的顺序按照 优先级从高至低。 id++, id-- 变量后置加,后置减 ++id, --id 变量前置加,前置减 -, + 一元减法,一元加法 !, ~ 逻辑和位取反 ** 指数 *, /, % 乘法,除法,取余数 +, - 增加,减少 <<, >> 向左和向右按位移位 <=, >=, <, > 比较 ==, != 等于,不等于 & 按位与 ^ 按位异或 | 按位或 && 逻辑与 || 逻辑或 expr ? expr : expr 条件操作符 =, *=, /=, %=, +=, -=, <<=, >>=, &=, ^=, |= 赋值 Shell 变量允许作为操作数。表达式中的变量的名称会被取代以值 (强制转换为定宽的整数)。表达式中的变量不需要打开整数属性。 操作符按照优先级进行估值。括号中的子表达式将被先估值,并可取代上述表达式规则。 退出状态: 如果最后一个 ARG 参数估值为 0,则 let 返回 1; 否则 let 返回 0。
547.
Unset values and attributes of shell variables and functions. For each NAME, remove the corresponding variable or function. Options: -f treat each NAME as a shell function -v treat each NAME as a shell variable -n treat each NAME as a name reference and unset the variable itself rather than the variable it references Without options, unset first tries to unset a variable, and if that fails, tries to unset a function. Some variables cannot be unset; also see `readonly'. Exit Status: Returns success unless an invalid option is given or a NAME is read-only.
2017-05-17
取消设定 shell 变量和函数的值和属性。 对每一个 NAME 名称,删除对应的变量或函数。 选项: -f 将每个 NAME 视为函数 -v 将每个 NAME 视为变量 -n 将每个 NAME 视为名称引用,只取消其本身而非其指向的变量 不带选项时,unset 首先尝试取消设定一个变量,如果失败,再尝试取消设定一个函数。 某些变量不可以被取消设定;参见 `readonly'。 退出状态: 返回成功,除非使用了无效的选项或者 NAME 名称为只读。
549.
Mark shell variables as unchangeable. Mark each NAME as read-only; the values of these NAMEs may not be changed by subsequent assignment. If VALUE is supplied, assign VALUE before marking as read-only. Options: -a refer to indexed array variables -A refer to associative array variables -f refer to shell functions -p display a list of all readonly variables or functions, depending on whether or not the -f option is given An argument of `--' disables further option processing. Exit Status: Returns success unless an invalid option is given or NAME is invalid.
2017-05-17
标记 shell 变量为不可改变。 标记每一个 NAME 名称为只读;这些 NAME 变量的值将不可以被后续的赋值 操作所改变。如果提供了 VALUE,则在标记为只读之前将 VALUE 值赋给变量。 选项: -a 指下标数组变量 -A 指关联数组标量 -f 指 shell 函数 -p 显示只读变量或函数列表,取决于是否提供了 -f 选项 `--' 的参数禁用进一步的选项处理。 退出状态: 返回成功,除非使用了无效的选项或者 NAME 名称。
553.
Evaluate conditional expression. Exits with a status of 0 (true) or 1 (false) depending on the evaluation of EXPR. Expressions may be unary or binary. Unary expressions are often used to examine the status of a file. There are string operators and numeric comparison operators as well. The behavior of test depends on the number of arguments. Read the bash manual page for the complete specification. File operators: -a FILE True if file exists. -b FILE True if file is block special. -c FILE True if file is character special. -d FILE True if file is a directory. -e FILE True if file exists. -f FILE True if file exists and is a regular file. -g FILE True if file is set-group-id. -h FILE True if file is a symbolic link. -L FILE True if file is a symbolic link. -k FILE True if file has its `sticky' bit set. -p FILE True if file is a named pipe. -r FILE True if file is readable by you. -s FILE True if file exists and is not empty. -S FILE True if file is a socket. -t FD True if FD is opened on a terminal. -u FILE True if the file is set-user-id. -w FILE True if the file is writable by you. -x FILE True if the file is executable by you. -O FILE True if the file is effectively owned by you. -G FILE True if the file is effectively owned by your group. -N FILE True if the file has been modified since it was last read. FILE1 -nt FILE2 True if file1 is newer than file2 (according to modification date). FILE1 -ot FILE2 True if file1 is older than file2. FILE1 -ef FILE2 True if file1 is a hard link to file2. String operators: -z STRING True if string is empty. -n STRING STRING True if string is not empty. STRING1 = STRING2 True if the strings are equal. STRING1 != STRING2 True if the strings are not equal. STRING1 < STRING2 True if STRING1 sorts before STRING2 lexicographically. STRING1 > STRING2 True if STRING1 sorts after STRING2 lexicographically. Other operators: -o OPTION True if the shell option OPTION is enabled. -v VAR True if the shell variable VAR is set. -R VAR True if the shell variable VAR is set and is a name reference. ! EXPR True if expr is false. EXPR1 -a EXPR2 True if both expr1 AND expr2 are true. EXPR1 -o EXPR2 True if either expr1 OR expr2 is true. arg1 OP arg2 Arithmetic tests. OP is one of -eq, -ne, -lt, -le, -gt, or -ge. Arithmetic binary operators return true if ARG1 is equal, not-equal, less-than, less-than-or-equal, greater-than, or greater-than-or-equal than ARG2. Exit Status: Returns success if EXPR evaluates to true; fails if EXPR evaluates to false or an invalid argument is given.
2017-05-17
对条件表达式进行估值。 根据 EXPR 表达式的估值以状态 0 (真) 或 1 (伪) 退出。 表达式可以是一元或者二元的。一元表达式通常用于检测 文件状态。同时还有字符串操作符和数字比较操作符。 文件操作符: -a 文件 如果文件存在则为真。 -b 文件 如果文件为块特殊文件则为真。 -c 文件 如果文件为字符特殊文件则为真。 -d 文件 如果文件为目录则为真。 -e 文件 如果文件存在则为真。 -f 文件 如果文件存在且为常规文件则为真。 -g 文件 如果文件的组属性设置打开则为真。 -h 文件 如果文件为符号链接则为真。 -L 文件 如果文件为符号链接则为真。 -k 文件 如果文件的粘滞 (sticky) 位设定则为真。 -p 文件 如果文件为命名管道则为真。 -r 文件 如果文件对于您是可读的则为真。 -s 文件 如果文件存在且不为空则为真。 -S 文件 如果文件是套接字则为真。 -t 文件描述符 如果文件描述符在一个终端上打开则为真。 -u 文件 如果文件的用户数行设置打开则为真。 -w 文件 如果文件对您是可写的则为真 -x 文件 如果文件对您是可执行的则为真。 -O 文件 如果文件是被您所有的则为真。 -G 文件 如果文件被您的组所有则为真。 -N 文件 如果文件上次被读取之后修改过则为真。 FILE1 -nt FILE2 如果 file1 文件新于 file2 文件则为真(根据 修改日期)。 FILE1 -ot FILE2 如果 file1 文件旧于 file2 文件则为真。 FILE1 -ef FILE2 如果 file1 文件是 file2 文件的硬链接则为真。 字符串操作符 -z 字符串 如果字符串为空则为真。 -n 字符串 字符串 如果字符串不为空则为真。 STRING1 = STRING2 如果 string1 和 string2 字符串相同则为真。 STRING1 != STRING2 如果 string1 和 string2 字符串不相同则为真。 STRING1 < STRING2 如果按字典排序 string1 在 string2 串之前则为真。 STRING1 > STRING2 如果按字典排序 string1 在 string2 串之前则为真。 其他操作符: -o 选项 如果指定 shell 选项启用则为真。 -v VAR 如果指定 Shell 变量 VAR 已赋值则为真。 -R VAR 如果指定 Shell 变量 VAR 已赋值且为名称引用则为真。 ! EXPR 如果表达式 expr 为假则为真。 EXPR1 -a EXPR2 如果 expr1 和 expr2 都为真则为真。 EXPR1 -o EXPR2 如果 expr1 和 expr2 有一个为真则为真。 arg1 OP arg2 算术测试。OP操作符可以是 -eq、-ne、 -lt、-le、-gt、或 -ge 中的一个。 二元算术操作返回真,如果 ARG1 参数等于、不等于、 小于、小于等于、大于、或者大于等于 ARG2 参数。 退出状态: 如果 EXPR 表达式估值为真则返回成功;如果 EXPR 表达式估值 为假或者使用了无效的参数则返回失败。
556.
Trap signals and other events. Defines and activates handlers to be run when the shell receives signals or other conditions. ARG is a command to be read and executed when the shell receives the signal(s) SIGNAL_SPEC. If ARG is absent (and a single SIGNAL_SPEC is supplied) or `-', each specified signal is reset to its original value. If ARG is the null string each SIGNAL_SPEC is ignored by the shell and by the commands it invokes. If a SIGNAL_SPEC is EXIT (0) ARG is executed on exit from the shell. If a SIGNAL_SPEC is DEBUG, ARG is executed before every simple command. If a SIGNAL_SPEC is RETURN, ARG is executed each time a shell function or a script run by the . or source builtins finishes executing. A SIGNAL_SPEC of ERR means to execute ARG each time a command's failure would cause the shell to exit when the -e option is enabled. If no arguments are supplied, trap prints the list of commands associated with each signal. Options: -l print a list of signal names and their corresponding numbers -p display the trap commands associated with each SIGNAL_SPEC Each SIGNAL_SPEC is either a signal name in <signal.h> or a signal number. Signal names are case insensitive and the SIG prefix is optional. A signal may be sent to the shell with "kill -signal $$". Exit Status: Returns success unless a SIGSPEC is invalid or an invalid option is given.
2017-02-17
对信号和其他事件设陷阱。 定义一个处理器,在 shell 接收到信号和其他条件下执行。 ARG 参数是当 shell 接收到 SIGNAL_SPEC 信号时读取和执行的命令。 如果没有指定 ARG 参数 (并且只给出一个 SIGNAL_SPEC 信号) 或者 ARG 参数为 `-',每一个指定的参数会被重置为原始值。如果 ARG 参数是一个空串,则每一个 SIGNAL_SPEC 信号会被 shell 和它启动的命令忽略。 如果一个 SIGNAL_SPEC 信号是 EXIT (0) ,则 ARG 命令会在 shell 退出时被 执行。如果一个 SIGNAL_SPEC 信号是 DEBUG,则 ARG命令会在每一个简单命 令之前执行。 如果不提供参数,trap 打印列表显示每一个与每一个信号相关联的命令。 选项: -l 打印一个信号名称和它们对应的编号的列表 -p 打印与每个 SIGNAL_SPEC 信号相关联的陷阱命令 每一个 SIGNAL_SPEC 信号可以是 <signal.h> 中的信号名称或者信号编号。 信号名称大小写敏感且可以使用 SIG 前缀。信号可用 "kill -信号 $$" 发送给 shell。 退出状态: 返回成功,除非使用了无效的选项或者 SIGSPEC。
557.
Display information about command type. For each NAME, indicate how it would be interpreted if used as a command name. Options: -a display all locations containing an executable named NAME; includes aliases, builtins, and functions, if and only if the `-p' option is not also used -f suppress shell function lookup -P force a PATH search for each NAME, even if it is an alias, builtin, or function, and returns the name of the disk file that would be executed -p returns either the name of the disk file that would be executed, or nothing if `type -t NAME' would not return `file' -t output a single word which is one of `alias', `keyword', `function', `builtin', `file' or `', if NAME is an alias, shell reserved word, shell function, shell builtin, disk file, or not found, respectively Arguments: NAME Command name to be interpreted. Exit Status: Returns success if all of the NAMEs are found; fails if any are not found.
2017-05-17
显示命令类型的信息。 对于每一个 NAME 名称,指示如果作为命令它将如何被解释。 选项: -a 显示所有包含名称为 NAME 的可执行文件的位置; 包括别名、内建和函数。仅当 `-p' 选项没有使用时 -f 抑制 shell 函数查询 -P 为每个 NAME 名称惊醒 PATH 路径搜索,即使它是别名、 内建或函数,并且返回将被执行的磁盘上文件的名称。 -p 返回将被执行的磁盘上文件的名称,或者当 `type -t NAME' 不返回 `file' 时,不返回任何值。 -t 返回下列词中的任何一个 `alias'、`keyword'、 `function'、`builtin'、`file' 或者 `',相应地如果 NAME 是 一个别名、shell 保留字、shell 函数、shell 内建、 磁盘文件或没有找到。 参数: NAME 将要解析的命令。 退出状态: 如果所有的 NAME 命令都找到则返回成功;任何一个找不到则失败。
558.
Modify shell resource limits. Provides control over the resources available to the shell and processes it creates, on systems that allow such control. Options: -S use the `soft' resource limit -H use the `hard' resource limit -a all current limits are reported -b the socket buffer size -c the maximum size of core files created -d the maximum size of a process's data segment -e the maximum scheduling priority (`nice') -f the maximum size of files written by the shell and its children -i the maximum number of pending signals -k the maximum number of kqueues allocated for this process -l the maximum size a process may lock into memory -m the maximum resident set size -n the maximum number of open file descriptors -p the pipe buffer size -q the maximum number of bytes in POSIX message queues -r the maximum real-time scheduling priority -s the maximum stack size -t the maximum amount of cpu time in seconds -u the maximum number of user processes -v the size of virtual memory -x the maximum number of file locks -P the maximum number of pseudoterminals -T the maximum number of threads Not all options are available on all platforms. If LIMIT is given, it is the new value of the specified resource; the special LIMIT values `soft', `hard', and `unlimited' stand for the current soft limit, the current hard limit, and no limit, respectively. Otherwise, the current value of the specified resource is printed. If no option is given, then -f is assumed. Values are in 1024-byte increments, except for -t, which is in seconds, -p, which is in increments of 512 bytes, and -u, which is an unscaled number of processes. Exit Status: Returns success unless an invalid option is supplied or an error occurs.
2017-05-17
修改 shell 资源限制。 在允许此类控制的系统上,提供对于 shell 及其创建的进程所可用的 资源的控制。 选项: -S 使用软 (`soft') 资源限制 -H 使用硬 (`hard') 资源限制 -a 所有当前限制都被报告 -b 套接字缓存尺寸 -c 创建的核文件的最大尺寸 -d 一个进程的数据区的最大尺寸 -e 最高的调度优先级 (`nice') -f 有 shell 及其子进程可以写的最大文件尺寸 -i 最多的可以挂起的信号数 -k 分配给此进程的最大 kqueue 数量 -l 一个进程可以锁定的最大内存尺寸 -m 最大的内存进驻尺寸 -n 最多的打开的文件描述符个数 -p 管道缓冲区尺寸 -q POSIX 信息队列的最大字节数 -r 实时调度的最大优先级 -s 最大栈尺寸 -t 最大的CPU时间,以秒为单位 -u 最大用户进程数 -v 虚拟内存尺寸 -x 最大的文件锁数量 -P 最大伪终端数量 -T 最大线程数量 并非所有选项在所有系统上可用。 如果提供了 LIMIT 变量,则它为指定资源的新的值;特别的 LIMIT 值为 `soft'、`hard'和`unlimited',分别表示当前的软限制,硬限制和无限制。 否则打印指定资源的当前限制值,不带选项则假定为 -f 取值都是 1024 字节为单位,除了 -t 以秒为单位,-p 以 512 字节递增, -u 为无范围的进程数量。 退出状态: 返回成功,除非使用了无效的选项或者错误发生。
559.
Display or set file mode mask. Sets the user file-creation mask to MODE. If MODE is omitted, prints the current value of the mask. If MODE begins with a digit, it is interpreted as an octal number; otherwise it is a symbolic mode string like that accepted by chmod(1). Options: -p if MODE is omitted, output in a form that may be reused as input -S makes the output symbolic; otherwise an octal number is output Exit Status: Returns success unless MODE is invalid or an invalid option is given.
2017-02-17
显示或设定文件模式掩码。 设定用户文件创建掩码为 MODE 模式。如果省略了 MODE,则 打印当前掩码的值。 如果 MODE 模式以数字开头,则被当作八进制数解析;否则是一个 chmod(1) 可接收的符号模式串。 选项: -p 如果省略 MODE 模式,以可重用为输入的格式输入 -S 以符号形式输出,否则以八进制数格式输出 退出状态: 返回成功,除非使用了无效的 MODE 模式或者选项。
561.
Wait for process completion and return exit status. Waits for each process specified by a PID and reports its termination status. If PID is not given, waits for all currently active child processes, and the return status is zero. PID must be a process ID. Exit Status: Returns the status of the last PID; fails if PID is invalid or an invalid option is given.
2017-02-17
等待进程完成并且返回退出状态。 等待指定进程并报告它的终止状态。如果没有提供 PID,则当前所有的活跃 子进程都会被等待,并且返回码为零。PID 必须为进程号。 退出状态: 返回进程 ID 的状态;如果 PID 是无效的进程号或者指定了无效的选项则失败。
577.
Add directories to stack. Adds a directory to the top of the directory stack, or rotates the stack, making the new top of the stack the current working directory. With no arguments, exchanges the top two directories. Options: -n Suppresses the normal change of directory when adding directories to the stack, so only the stack is manipulated. Arguments: +N Rotates the stack so that the Nth directory (counting from the left of the list shown by `dirs', starting with zero) is at the top. -N Rotates the stack so that the Nth directory (counting from the right of the list shown by `dirs', starting with zero) is at the top. dir Adds DIR to the directory stack at the top, making it the new current working directory. The `dirs' builtin displays the directory stack. Exit Status: Returns success unless an invalid argument is supplied or the directory change fails.
2017-05-17
将目录添加到栈中。 将目录添加到目录栈顶,或着旋转栈直到当前工作目录成为 新的栈顶。不带参数时,交换栈顶的两个目录。 选项: -n 抑制添加目录至栈时通常的改变目录操作,从而仅对栈 进行操作。 参数: +N 旋转栈从而第 N 个目录 (`dirs' 显示的列表中左起,从零开始) 将移动到栈顶。 -N 旋转栈从而第 N 个目录 (`dirs' 显示的列表中右起,从零开始) 将移动到栈顶。 dir 将 DIR 目录添加到栈顶,并且使其成为当前工作目录。 `dirs' 内建显示目录栈。 退出状态: 返回成功,除非使用了无效的参数或者目录转换失败。
578.
Remove directories from stack. Removes entries from the directory stack. With no arguments, removes the top directory from the stack, and changes to the new top directory. Options: -n Suppresses the normal change of directory when removing directories from the stack, so only the stack is manipulated. Arguments: +N Removes the Nth entry counting from the left of the list shown by `dirs', starting with zero. For example: `popd +0' removes the first directory, `popd +1' the second. -N Removes the Nth entry counting from the right of the list shown by `dirs', starting with zero. For example: `popd -0' removes the last directory, `popd -1' the next to last. The `dirs' builtin displays the directory stack. Exit Status: Returns success unless an invalid argument is supplied or the directory change fails.
2017-05-17
从栈中删除目录。 从目录栈中删除条目。不带参数时,删除栈顶目录,并改变至新的栈 顶目录。 选项: -n 抑制从栈中删除目录时通常的目录变换操作,从而仅对栈 进行操作。 参数: +N 删除第 N 个目录 (`dirs' 显示的目录列表中左起,从零开始)。 例如: `popd +0' 删除第一个目录,`popd +1' 删除第二个。 -N 删除第 N 个目录 (`dirs' 显示的目录列表中右起,从零开始)。 例如: `popd -0' 删除最后一个目录,,`popd -1' 删除倒数第二个。 `dirs' 内建显示目录栈。 退出状态: 返回成功,除非使用了无效的参数或者目录变换失败。
579.
Display directory stack. Display the list of currently remembered directories. Directories find their way onto the list with the `pushd' command; you can get back up through the list with the `popd' command. Options: -c clear the directory stack by deleting all of the elements -l do not print tilde-prefixed versions of directories relative to your home directory -p print the directory stack with one entry per line -v print the directory stack with one entry per line prefixed with its position in the stack Arguments: +N Displays the Nth entry counting from the left of the list shown by dirs when invoked without options, starting with zero. -N Displays the Nth entry counting from the right of the list shown by dirs when invoked without options, starting with zero. Exit Status: Returns success unless an invalid option is supplied or an error occurs.
2017-05-17
显示目录栈。 显示当前记住的目录列表。通过 `pushd' 命令可以将目录存入列表 中;`popd' 命令可用于遍历弹出列表。 选项: -c 删除所有元素以清空目录栈 -l 不打印与主目录相关的波浪号前缀的目录 -p 每行一个条目打印目录栈 -v 每行一个条目,以栈中位置为前缀打印目录栈 参数: +N 显示 dirs 不带选项启动时显示的目录列表左起中第 N 个目录,从零开始。 -N 显示 dirs 不带选项启动时显示的目录列表右起中第 N 个目录,从零开始。 退出状态: 返回成功,除非使用了无效的选项或者发生错误。
581.
Formats and prints ARGUMENTS under control of the FORMAT. Options: -v var assign the output to shell variable VAR rather than display it on the standard output FORMAT is a character string which contains three types of objects: plain characters, which are simply copied to standard output; character escape sequences, which are converted and copied to the standard output; and format specifications, each of which causes printing of the next successive argument. In addition to the standard format specifications described in printf(1), printf interprets: %b expand backslash escape sequences in the corresponding argument %q quote the argument in a way that can be reused as shell input %(fmt)T output the date-time string resulting from using FMT as a format string for strftime(3) The format is re-used as necessary to consume all of the arguments. If there are fewer arguments than the format requires, extra format specifications behave as if a zero value or null string, as appropriate, had been supplied. Exit Status: Returns success unless an invalid option is given or a write or assignment error occurs.
2017-05-17
在 FORMAT 的控制下格式化并打印 ARGUMENTS 参数。 选项: -v var 将输出赋值给 shell 变量 VAR 而不显示在标准输出上 FORMAT 是包含三种对象的字符串:简单地被拷贝到标准输出的普通字符; 被变换之后拷贝到标准输入的转义字符;以及每个都会影响到下个参数的打印的格式化声明。 在 printf(1) 中描述的标准控制声明之外,printf 解析: %b 扩展对应参数中的反斜杠转义序列 %q 以可作为 shell 输入的格式引用参数 %(fmt)T 以 FMT 为供给 strftime(3) 的格式输出日期时间字符串 退出状态: 返回成功,除非使用了无效的选项或者写或赋值错误发生。
583.
Display possible completions depending on the options. Intended to be used from within a shell function generating possible completions. If the optional WORD argument is supplied, matches against WORD are generated. Exit Status: Returns success unless an invalid option is supplied or an error occurs.
2017-02-17
依据选项显示可能的补全。 意图在能产生可能的补全的 shell 函数内部使用。 如果提供了可选的 WORD 参数,则产生按照 WORD 进行的匹配。 退出状态: 除非使用了无效选项或者错误发生,否则返回成功。
585.
Read lines from the standard input into an indexed array variable. Read lines from the standard input into the indexed array variable ARRAY, or from file descriptor FD if the -u option is supplied. The variable MAPFILE is the default ARRAY. Options: -d delim Use DELIM to terminate lines, instead of newline -n count Copy at most COUNT lines. If COUNT is 0, all lines are copied -O origin Begin assigning to ARRAY at index ORIGIN. The default index is 0 -s count Discard the first COUNT lines read -t Remove a trailing DELIM from each line read (default newline) -u fd Read lines from file descriptor FD instead of the standard input -C callback Evaluate CALLBACK each time QUANTUM lines are read -c quantum Specify the number of lines read between each call to CALLBACK Arguments: ARRAY Array variable name to use for file data If -C is supplied without -c, the default quantum is 5000. When CALLBACK is evaluated, it is supplied the index of the next array element to be assigned and the line to be assigned to that element as additional arguments. If not supplied with an explicit origin, mapfile will clear ARRAY before assigning to it. Exit Status: Returns success unless an invalid option is given or ARRAY is readonly or not an indexed array.
2017-05-17
从标准输入读取行到下标数组变量中。 从标准输入读取行到下标数组变量 ARRAY 中,或者如果使用了 -u 选项, 从文件描述符 FD 中读取。MAPFILE 变量是默认的 ARRAY 变量。 选项: -d delim 使用 DELIM 而非换行符断行 -n count 最多拷贝 COUNT 行,如果 COUNT 为 0,则拷贝所有行。 -O origin 从下标 ORIGIN 开始 赋值给 ARRAY 变量。默认下标是0. -s count 丢弃最先读取的 COUNT 行。 -t 从读取的每行末尾删除一个换行符。 -u fd 从文件描述符 FD 中读取行而不是标准输入。 -C callback 每 QUANTUM 次读行之后对 CALLBACK 回调进行估值。 -c quantum 定义每次调用 CALLBACK 回调之间读取的行数。 参数: ARRAY 存储数据使用的数组变量 如果使用了 -C 而没有 -c,默认的量子是5000。当对 CALLBACK 估值时, 下一个将被赋值的数组元素的下标作为额外参数被传递。 如果没有显式指定起始下标,mapfile 将在赋值前清空 ARRAY 变量。 退出状态: 返回成功,除非使用了无效的选项,或者 ARRAY 变量只读或不是下标数组。