Browsing Chinese (Simplified) translation

Don't show this notice anymore
Before translating, be sure to go through Ubuntu Translators instructions and Chinese (Simplified) guidelines.
517526 of 547 results
517.
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[tab]print a list of signal names and their corresponding numbers
-p[tab]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.
[tab] represents a tab character. Please write it exactly the same way, [tab], in your translation.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
为信号和其他事件设置陷阱。

定义并激活当 shell 接收到信号或满足其他条件时执行的处理程序。

<参数> 是当 shell 接收到 <信号说明符> 时读取和执行的命令。如果
没有指定 <参数>(并且只给出一个 <信号说明符>)或者 <参数> 为 "-",
则每一个指定的信号会被重置为原始值。如果 <参数> 是空字符串,则每一个
<信号说明符> 会被 shell 和它启动的命令忽略。

如果一个 <信号说明符> 是 EXIT (0),则 <参数> 会在 shell 退出时被执行。
如果一个 <信号说明符> 是 DEBUG,则 <参数> 会在每一个简单命令之前执行。
如果一个 <信号说明符> 是 RETURN,则 <参数> 会在每一个 shell 函数或者
通过 . 或 source 内建执行的脚本执行结束时被执行。如果一个 <信号说明符>
是 ERR,则 <参数> 会在命令返回失败,并且假如启用了 -e 选项,本次失败就
会导致 shell 退出的情况下被执行。

如果不提供参数,trap 打印与每一个信号相关联的命令列表。

选项:
-l[tab]打印信号名称以及和它们对应的编号的列表
-p[tab]打印与每个 <信号说明符> 相关联的陷阱命令

每一个 <信号说明符> 可以是 <signal.h> 中的信号名称或者信号编号。信号名称
是大小写敏感的,并且 SIG 前缀是可选的。可以使用 "kill -信号 $$" 给 shell
发送信号。

退出状态:
返回成功,除非使用了无效的 <信号说明符>,或者无效的选项。
Translated by Wenbin Lv
EXIT and DEBUG should be as-is. Use before you translate, please. The -signal is only an example; Read carefully.
Located in builtins.c:1365
518.
Display information about command type.

For each NAME, indicate how it would be interpreted if used as a
command name.

Options:
-a[tab]display all locations containing an executable named NAME;
[tab]includes aliases, builtins, and functions, if and only if
[tab]the `-p' option is not also used
-f[tab]suppress shell function lookup
-P[tab]force a PATH search for each NAME, even if it is an alias,
[tab]builtin, or function, and returns the name of the disk file
[tab]that would be executed
-p[tab]returns either the name of the disk file that would be executed,
[tab]or nothing if `type -t NAME' would not return `file'.
-t[tab]output a single word which is one of `alias', `keyword',
[tab]`function', `builtin', `file' or `', if NAME is an alias, shell
[tab]reserved word, shell function, shell builtin, disk file, or not
[tab]found, respectively

Arguments:
NAME[tab]Command name to be interpreted.

Exit Status:
Returns success if all of the NAMEs are found; fails if any are not found.
[tab] represents a tab character. Please write it exactly the same way, [tab], in your translation.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
显示命令类型的信息。

对于每一个 NAME 名称,指示如果作为命令它将如何被解释。

选项:
-a[tab]显示所有包含名称为 NAME 的可执行文件的位置;
[tab]包括别名、内嵌和函数。仅当 `-p' 选项没有使用时
-f[tab]抑制 shell 函数查询
-P[tab]为每个 NAME 名称惊醒 PATH 路径搜索,即使它是别名、
[tab]内嵌或函数,并且返回将被执行的磁盘上文件的名称。
-p[tab]返回将被执行的磁盘上文件的名称,或者当 `type -t NAME'
[tab]不返回 `file' 时,不返回任何值。
-t[tab]返回下列词中的任何一个`alias'、`keyword'、
[tab]`function'、`builtin'、`file'或者`',如果 NAME 是相应的
[tab]一个别名、shell 保留字、shell 函数、shell 内嵌、
[tab]磁盘文件或没有找到。

参数:
NAME[tab]将要解析的命令。

退出状态:
如果所有的 NAME 命令都找到则返回成功;任何找不到则失败。
Translated by Alex Ye
Located in builtins.c:1368
519.
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[tab]use the `soft' resource limit
-H[tab]use the `hard' resource limit
-a[tab]all current limits are reported
-b[tab]the socket buffer size
-c[tab]the maximum size of core files created
-d[tab]the maximum size of a process's data segment
-e[tab]the maximum scheduling priority (`nice')
-f[tab]the maximum size of files written by the shell and its children
-i[tab]the maximum number of pending signals
-l[tab]the maximum size a process may lock into memory
-m[tab]the maximum resident set size
-n[tab]the maximum number of open file descriptors
-p[tab]the pipe buffer size
-q[tab]the maximum number of bytes in POSIX message queues
-r[tab]the maximum real-time scheduling priority
-s[tab]the maximum stack size
-t[tab]the maximum amount of cpu time in seconds
-u[tab]the maximum number of user processes
-v[tab]the size of virtual memory
-x[tab]the maximum number of file locks

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.
[tab] represents a tab character. Please write it exactly the same way, [tab], in your translation.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
修改 shell 资源限制。

在允许此类控制的系统上,提供对于 shell 及其创建的进程所可用的
资源的控制。

选项:
-S[tab]使用 `soft'(软)资源限制
-H[tab]使用 `hard'(硬)资源限制
-a[tab]所有当前限制都被报告
-b[tab]套接字缓存尺寸
-c[tab]创建的核文件的最大尺寸
-d[tab]一个进程的数据区的最大尺寸
-e[tab]最高的调度优先级(`nice')
-f[tab]有 shell 及其子进程可以写的最大文件尺寸
-i[tab]最多的可以挂起的信号数
-l[tab]一个进程可以锁定的最大内存尺寸
-m[tab]最大的内存进驻尺寸
-n[tab]最多的打开的文件描述符个数
-p[tab]管道缓冲区尺寸
-q[tab]POSIX 信息队列的最大字节数
-r[tab]实时调度的最大优先级
-s[tab]最大栈尺寸
-t[tab]最大的CPU时间,以秒为单位
-u[tab]最大用户进程数
-v[tab]虚拟内存尺寸
-x[tab]最大的锁数量

如果提供了 LIMIT 变量,则它为指定资源的新的值;特别的 LIMIT 值为
`soft'、`hard'和`unlimited',分别表示当前的软限制,硬限制和无限制。
否则打印指定资源的当前限制值,不带选项则假定为 -f

取值都是1024字节为单位,除了 -t 以秒为单位,-p 以512字节为单位,
-u 以无范围的进程数量。

退出状态:
返回成功,除非使用了无效的选项或者错误发生。
Translated by Alex Ye
Located in builtins.c:1399
520.
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[tab]if MODE is omitted, output in a form that may be reused as input
-S[tab]makes the output symbolic; otherwise an octal number is output

Exit Status:
Returns success unless MODE is invalid or an invalid option is given.
[tab] represents a tab character. Please write it exactly the same way, [tab], in your translation.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
显示或设定文件模式掩码。

设定用户文件创建掩码为 <模式>。如果省略 <模式>,则打印当前掩码的值。

如果 <模式> 以数字开头,则按照八进制数进行解释;否则视为一个
chmod(1) 可接受的符号模式串。

选项:
-p[tab]如果省略 <模式>,以可重用作输入的格式输出
-S[tab]以符号形式输出,否则以八进制数格式输出

退出状态:
返回成功,除非使用了无效的 <模式> 或者选项。
Translated by Wenbin Lv
Located in builtins.c:1483
521.
Wait for job completion and return exit status.

Waits for the process identified by ID, which may be a process ID or a
job specification, and reports its termination status. If ID is not
given, waits for all currently active child processes, and the return
status is zero. If ID is a a job specification, waits for all processes
in the job's pipeline.

Exit Status:
Returns the status of ID; fails if ID is invalid or an invalid option is
given.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
等待任务完成并返回退出状态。

等待以 ID 编号识别的进程,其中ID 可以是进程编号或者任务声明,
并报告它的终止状态。如果 ID 没有给出,则等待所有的当前活跃子
进程,并且返回状态为零。如果 ID 是任务声明,等待任务管道中的
所有进程。

退出状态:
返回 ID 进程的状态;如果使用了无效的 ID 或者选项则失败。
Translated by Alex Ye
Located in builtins.c:1464
522.
Wait for process completion and return exit status.

Waits for the specified process and reports its termination status. If
PID is not given, all currently active child processes are waited for,
and the return code is zero. PID must be a process ID.

Exit Status:
Returns the status of ID; fails if ID is invalid or an invalid option is
given.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
等待进程完成并且返回退出状态。

等待指定进程并报告它的终止状态。如果
没有提供PID,则当前所有的活跃子进程都会被等待,
并且返回码为零。PID必须为进程号。

退出状态:
返回进程ID的状态;如果ID是无效的进程号或者指定了无效
的选项则失败。
Translated by Alex Ye
Located in builtins.c:1482
523.
Execute commands for each member in a list.

The `for' loop executes a sequence of commands for each member in a
list of items. If `in WORDS ...;' is not present, then `in "$@"' is
assumed. For each element in WORDS, NAME is set to that element, and
the COMMANDS are executed.

Exit Status:
Returns the status of the last command executed.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
为列表中的每个成员执行命令。

"for" 循环为列表中的每个成员执行一系列的命令。
如果没有 "in 词语 ...;" ,则假定使用 `in "$@"'。对于 <词语> 中的
每个元素,<名称> 被设定为该元素,然后执行 <命令>。

退出状态:
返回最后执行的命令的状态。
Translated by Wenbin Lv
Located in builtins.c:1549
524.
Arithmetic for loop.

Equivalent to
[tab](( EXP1 ))
[tab]while (( EXP2 )); do
[tab][tab]COMMANDS
[tab][tab](( EXP3 ))
[tab]done
EXP1, EXP2, and EXP3 are arithmetic expressions. If any expression is
omitted, it behaves as if it evaluates to 1.

Exit Status:
Returns the status of the last command executed.
[tab] represents a tab character. Please write it exactly the same way, [tab], in your translation.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
算术 for 循环。

等价于
[tab](( 表达式1 ))
[tab]while (( 表达式2 )); do
[tab][tab]命令
[tab][tab](( 表达式3 ))
[tab]done
<表达式1>、<表达式2> 和 <表达式3> 都是算术表达式。如果省略任何表达式,
则等价于使用了求值结果为 1 的表达式。

退出状态:
返回最后执行的命令的状态。
Translated by Wenbin Lv
Located in builtins.c:1563
525.
Select words from a list and execute commands.

The WORDS are expanded, generating a list of words. The
set of expanded words is printed on the standard error, each
preceded by a number. If `in WORDS' is not present, `in "$@"'
is assumed. The PS3 prompt is then displayed and a line read
from the standard input. If the line consists of the number
corresponding to one of the displayed words, then NAME is set
to that word. If the line is empty, WORDS and the prompt are
redisplayed. If EOF is read, the command completes. Any other
value read causes NAME to be set to null. The line read is saved
in the variable REPLY. COMMANDS are executed after each selection
until a break command is executed.

Exit Status:
Returns the status of the last command executed.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
从列表中选取词并且执行命令。

<词语> 被展开,生成一个词语列表。展开后的词语集合被打印到
标准错误,每个词语前面打印一个数字。如果没有 "in 词语" ,则假定
使用 `in "$@"'。然后,会显示一个 PS3 提示符,并且从标准输入读取
一行。如果该行是所显示的词之一所对应的数字,则 <名称> 被设定为
相应的词。如果该行为空,则会重新显示 <词语> 和提示符。如果读到了
EOF,则命令完成。读入任何其他的值会导致 <名称> 变量被设定为空。
读入的行被存放在变量 REPLY 中。<命令> 会在每次选择之后被执行,
直到执行到 break 命令。

退出状态:
返回最后一个执行的命令的状态。
Translated by Wenbin Lv
Located in builtins.c:1581
526.
Report time consumed by pipeline's execution.

Execute PIPELINE and print a summary of the real time, user CPU time,
and system CPU time spent executing PIPELINE when it terminates.

Options:
-p[tab]print the timing summary in the portable Posix format

The value of the TIMEFORMAT variable is used as the output format.

Exit Status:
The return status is the return status of PIPELINE.
[tab] represents a tab character. Please write it exactly the same way, [tab], in your translation.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
报告流水线执行消耗的时间。

执行 <流水线> 并且打印 <流水线> 终止时消耗的真实时间、用户 CPU 时间
和系统 CPU 时间的总结。

选项:
-p[tab]用可移植的 POSIX 格式打印用时总结。

使用 TIMEFORMAT 变量的值作为输出格式。

退出状态:
返回状态是 <流水线> 的返回状态。
Translated by Wenbin Lv
Located in builtins.c:1602
517526 of 547 results

This translation is managed by Ubuntu Simplified Chinese Translators, assigned by Ubuntu Translators.

You are not logged in. Please log in to work on translations.

Contributors to this translation: Alex Ye, Anthony Fok, Aron Xu, Bigfatsea, Boyuan Yang, Eric_Quan, Feng Chao, Gang ZHAO, Huang Zhen, LI Daobing, Lie Ex, Mingye Wang, WEI Kun, Wang Dianjin, Wenbin Lv, Zhang Junbo, gmagogsfm, hh9527, wangzc2009, zhang xuecheng, zhangzichao.