Translations by pan93412

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

301350 of 377 results
557.
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.
2022-08-25
標記 shell 變數為不可變更。 標記每一個 <名稱> 為唯讀;這些 <名稱> 變數的值將不可以被後續的指派 操作所變更。如果提供了 VALUE,則在標記為唯讀之前將 VALUE 值指派給變數。 選項: -a 指索引陣列變數 -A 指關聯陣列變數 -f 指 shell 函數 -p 顯示唯讀變數或函數列表,取決於是否提供了 -f 選項 「--」的參數停用進一步的選項處理。 結束狀態: 回傳成功,除非使用了無效的選項或者 <名稱>。
2020-11-10
標記 shell 變數為不可變更。 標記每一個 <名稱> 為唯讀;這些 <名稱> 變數的值將不可以被後續的指派 操作所變更。如果提供了 VALUE,則在標記為唯讀之前將 VALUE 值指派給變數。 選項: -a 指索引陣列變數 -A 指關聯陣列變數 -f 指 shell 函數 -p 顯示唯讀變數或函數列表,取決於是否提供了 -f 選項 「--」的參數停用進一步的選項處理。 退出狀態: 回傳成功,除非使用了無效的選項或者 <名稱>。
2019-02-23
標記 shell 變數為不可變更。 標記每一個 NAME 名稱為唯讀;這些 NAME 變數的值將不可以被後續的指派 操作所變更。如果提供了 VALUE,則在標記為唯讀之前將 VALUE 值指派給變數。 選項: -a 指索引陣列變數 -A 指關聯陣列變數 -f 指 shell 函數 -p 顯示唯讀變數或函數列表,取決於是否提供了 -f 選項 「--」的引數停用進一步的選項處理。 退出狀態: 回傳成功,除非使用了無效的選項或者 NAME 名稱。
558.
Shift positional parameters. Rename the positional parameters $N+1,$N+2 ... to $1,$2 ... If N is not given, it is assumed to be 1. Exit Status: Returns success unless N is negative or greater than $#.
2022-08-25
移位位置參數。 重新命名位置參數 $N+1、$N+2 … 到 $1、$2 … 如果沒有指定 N, 則假設為 1。 結束狀態: 回傳成功,除非 N 為負或者大於 $#。
2020-11-10
移位位置參數。 重新命名位置參數 $N+1、$N+2 … 到 $1、$2 … 如果沒有指定 N, 則假設為 1。 退出狀態: 回傳成功,除非 N 為負或者大於 $#。
559.
Execute commands from a file in the current shell. Read and execute commands from FILENAME in the current shell. The entries in $PATH are used to find the directory containing FILENAME. If any ARGUMENTS are supplied, they become the positional parameters when FILENAME is executed. Exit Status: Returns the status of the last command executed in FILENAME; fails if FILENAME cannot be read.
2022-08-25
在目前 shell 中執行一個檔案中的指令。 在目前 shell 中讀取並執行 <檔名> 檔案中的指令。$PATH 變數中的 條目被用於尋找包含 <檔名> 檔案的目錄。如果提供了任何的 <參數> 參數,則它們將成為 <檔名> 檔案執行時的位置參數。 結束狀態: 回傳 <檔名> 檔案中最後一個指令的狀態;如果 <檔名> 檔案不可讀則失敗。
2020-11-10
在目前 shell 中執行一個檔案中的指令。 在目前 shell 中讀取並執行 <檔名> 檔案中的指令。$PATH 變數中的 條目被用於尋找包含 <檔名> 檔案的目錄。如果提供了任何的 <參數> 參數,則它們將成為 <檔名> 檔案執行時的位置參數。 退出狀態: 回傳 <檔名> 檔案中最後一個指令的狀態;如果 <檔名> 檔案不可讀則失敗。
560.
Suspend shell execution. Suspend the execution of this shell until it receives a SIGCONT signal. Unless forced, login shells cannot be suspended. Options: -f force the suspend, even if the shell is a login shell Exit Status: Returns success unless job control is not enabled or an error occurs.
2022-08-25
暫停 shell 執行。 暫停 shell 的執行直到收到 SIGCONT 訊號。 登入 shell 不可以被暫停,除非強制執行。 選項: -f 強制暫停,即使是登入 shell。 結束狀態: 回傳成功,除非沒有啟用工作控制或者有錯誤發生。
2020-11-10
暫停 shell 執行。 暫停 shell 的執行直到收到 SIGCONT 訊號。 登入 shell 不可以被暫停,除非強制執行。 選項: -f 強制暫停,即使是登入 shell。 退出狀態: 回傳成功,除非沒有啟用工作控制或者有錯誤發生。
561.
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.
2022-08-25
對條件表示式進行求值。 根據 EXPR 表示式的求值以狀態 0 (真) 或 1 (偽) 結束。 表示式可以是一元或者二元的。一元表示式通常用於檢測 檔案狀態。同時還有字串運算子和數字比較運算子。 檔案運算子: -a 檔案 如果檔案存在則為真。 -b 檔案 如果檔案為區塊特殊檔案則為真。 -c 檔案 如果檔案為字元特殊檔案則為真。 -d 檔案 如果檔案為目錄則為真。 -e 檔案 如果檔案存在則為真。 -f 檔案 如果檔案存在且為一般檔案則為真。 -g 檔案 如果檔案的群組屬性設定開啟則為真。 -h 檔案 如果檔案為符號連結則為真。 -L 檔案 如果檔案為符號連結則為真。 -k 檔案 如果檔案的黏著位元已設定則為真。 -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 表示式求值 為假或者使用了無效的參數則回傳失敗。
2020-11-10
對條件表示式進行求值。 根據 EXPR 表示式的求值以狀態 0 (真) 或 1 (偽) 退出。 表示式可以是一元或者二元的。一元表示式通常用於檢測 檔案狀態。同時還有字串運算子和數字比較運算子。 檔案運算子: -a 檔案 如果檔案存在則為真。 -b 檔案 如果檔案為區塊特殊檔案則為真。 -c 檔案 如果檔案為字元特殊檔案則為真。 -d 檔案 如果檔案為目錄則為真。 -e 檔案 如果檔案存在則為真。 -f 檔案 如果檔案存在且為一般檔案則為真。 -g 檔案 如果檔案的群組屬性設定開啟則為真。 -h 檔案 如果檔案為符號連結則為真。 -L 檔案 如果檔案為符號連結則為真。 -k 檔案 如果檔案的黏著位元已設定則為真。 -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 表示式求值 為假或者使用了無效的參數則回傳失敗。
2019-02-23
對條件表示式進行求值。 根據 EXPR 表示式的求值以狀態 0 (真) 或 1 (偽) 退出。 表示式可以是一元或者二元的。一元表示式通常用於檢測 檔案狀態。同時還有字串運算子和數字比較運算子。 檔案運算子: -a 檔案 如果檔案存在則為真。 -b 檔案 如果檔案為區塊特殊檔案則為真。 -c 檔案 如果檔案為字元特殊檔案則為真。 -d 檔案 如果檔案為目錄則為真。 -e 檔案 如果檔案存在則為真。 -f 檔案 如果檔案存在且為常規檔案則為真。 -g 檔案 如果檔案的群組屬性設定開啟則為真。 -h 檔案 如果檔案為符號鏈結則為真。 -L 檔案 如果檔案為符號鏈結則為真。 -k 檔案 如果檔案的粘著位元已設定則為真。 -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 表示式求值 為假或者使用了無效的引數則回傳失敗。
562.
Evaluate conditional expression. This is a synonym for the "test" builtin, but the last argument must be a literal `]', to match the opening `['.
2020-11-10
求值條件表示式。 是內建指令「test」的同義詞,但是最後一個參數必須是 字元「]」,以符合起始的「[」。
563.
Display process times. Prints the accumulated user and system times for the shell and all of its child processes. Exit Status: Always succeeds.
2022-08-25
顯示行程時間 印出 shell 及其所有子行程的累計使用者空間和 系統空間執行時間。 結束狀態: 一律成功。
564.
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.
2022-08-25
對訊號和其他事件設陷阱。 定義一個處理器,在 shell 接收到訊號和其他條件下執行。 <參數> 是當 shell 接收到 SIGNAL_SPEC 訊號時讀取和執行的指令。 如果沒有指定 <參數> (並且只給出一個 SIGNAL_SPEC 訊號) 或者 <參數> 為 「-」,每一個指定的參數會被重設為原始值。如果 <參數> 是一個空串,則每一個 SIGNAL_SPEC 訊號會被 shell 和它啟動的指令忽略。 如果一個 SIGNAL_SPEC 訊號是 EXIT (0),則 <參數> 指令會在 shell 結束時被 執行。如果一個 SIGNAL_SPEC 訊號是 DEBUG,則 <參數> 指令會在每一個簡單命 令之前執行。 如果不提供參數,trap 印出列表顯示每一個與每一個訊號相關聯的指令。 選項: -l 印出一個訊號名稱和它們對應的編號列表 -p 印出與每個 SIGNAL_SPEC 訊號相關聯的陷阱指令 每一個 SIGNAL_SPEC 訊號可以是 <signal.h> 中的訊號名稱或者訊號編號。 訊號名稱大小寫相符且可以使用 SIG 字首。訊號可用「kill - 訊號 $$」 傳送給 shell。 結束狀態: 回傳成功,除非使用了無效的選項或者 SIGSPEC。
2020-11-10
對訊號和其他事件設陷阱。 定義一個處理器,在 shell 接收到訊號和其他條件下執行。 <參數> 是當 shell 接收到 SIGNAL_SPEC 訊號時讀取和執行的指令。 如果沒有指定 <參數> (並且只給出一個 SIGNAL_SPEC 訊號) 或者 <參數> 為 「-」,每一個指定的參數會被重設為原始值。如果 <參數> 是一個空串,則每一個 SIGNAL_SPEC 訊號會被 shell 和它啟動的指令忽略。 如果一個 SIGNAL_SPEC 訊號是 EXIT (0),則 <參數> 指令會在 shell 退出時被 執行。如果一個 SIGNAL_SPEC 訊號是 DEBUG,則 <參數> 指令會在每一個簡單命 令之前執行。 如果不提供參數,trap 印出列表顯示每一個與每一個訊號相關聯的指令。 選項: -l 印出一個訊號名稱和它們對應的編號列表 -p 印出與每個 SIGNAL_SPEC 訊號相關聯的陷阱指令 每一個 SIGNAL_SPEC 訊號可以是 <signal.h> 中的訊號名稱或者訊號編號。 訊號名稱大小寫相符且可以使用 SIG 字首。訊號可用「kill - 訊號 $$」 傳送給 shell。 退出狀態: 回傳成功,除非使用了無效的選項或者 SIGSPEC。
565.
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.
2022-09-30
顯示指令類型的資訊。 對於每一個 NAME,指示用作指令名稱時的解釋方式。 選項: -a 顯示所有包含名為 NAME 的可執行檔案的位置。 包括別名、內建和函數(若且唯若 “-p” 選項未使用時)。 -f 抑制 shell 函數查詢 -P 為每個 NAME 強制進行 PATH 路徑搜尋,即使它是別名、 內建或函數,並回傳將被執行的磁碟檔案名稱。 -p 回傳將被執行的磁碟上檔案的名稱,或者在 “type -t NAME” 回傳值不是 “file” 時,不回傳任何值。 -t 回傳 “alias”、“keyword”、“function”、“builtin”、“file” 或 “”,對應到 NAME 是別名、shell 保留字、shell 函數、 內建命令、磁碟檔案或找不到檔案。 引數: NAME 將要解析的指令。 結束狀態: 若找到所有的 NAME,則回傳成功;有任何一個沒找到,則回傳失敗。
2022-08-25
顯示指令類型的資訊。 對於每一個 <名稱>,指示如果做為指令它將如何被解釋。 選項: -a 顯示所有包含名稱為 <名稱> 的可執行檔案的位置; 包括別名、內建和函數。僅當「-p」選項沒有使用時 -f 抑制 shell 函數查詢 -P 為每個 <名稱> 驚醒 PATH 路徑搜尋,即使它是別名、 內建或函數,並且回傳將被執行的磁碟上檔案的名稱。 -p 回傳將被執行的磁碟上檔案的名稱,或者當「type -t <名稱>」 不回傳「file」時,不回傳任何值。 -t 回傳下列詞中的任何一個「alias」、「keyword」、 「function」、「builtin」、「file」或者「」,如果 <名稱> 是相應的 一個別名、shell 保留字、shell 函數、shell 內建命令、 磁碟檔案或沒有找到。 參數: <名稱> 將要解析的指令。 結束狀態: 如果所有的 <名稱> 指令都找到則回傳成功;任何找不到則失敗。
2020-11-10
顯示指令類型的資訊。 對於每一個 <名稱>,指示如果做為指令它將如何被解釋。 選項: -a 顯示所有包含名稱為 <名稱> 的可執行檔案的位置; 包括別名、內建和函數。僅當「-p」選項沒有使用時 -f 抑制 shell 函數查詢 -P 為每個 <名稱> 驚醒 PATH 路徑搜尋,即使它是別名、 內建或函數,並且回傳將被執行的磁碟上檔案的名稱。 -p 回傳將被執行的磁碟上檔案的名稱,或者當「type -t <名稱>」 不回傳「file」時,不回傳任何值。 -t 回傳下列詞中的任何一個「alias」、「keyword」、 「function」、「builtin」、「file」或者「」,如果 <名稱> 是相應的 一個別名、shell 保留字、shell 函數、shell 內建物件、 磁碟檔案或沒有找到。 參數: <名稱> 將要解析的指令。 退出狀態: 如果所有的 <名稱> 指令都找到則回傳成功;任何找不到則失敗。
2019-02-23
顯示命令類型的資訊。 對於每一個 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 命令都找到則回傳成功;任何找不到則失敗。
566.
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 -R the maximum time a real-time process can run before blocking -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.
2022-08-25
修改 shell 資源限制。 在允許此類控制的系統上,提供對 shell 及其建立的行程, 可用資源的控制。 選項: -S 使用彈性(「soft」)資源限制 -H 使用固定(「hard」)資源限制 -a 回報目前的所有限制 -b 通訊端快取大小 -c 建立之核心檔案的最大大小 -d 一個行程資料區的最大大小 -e 最高的排程優先順序(「nice」) -f shell 及其子行程可寫入的最大檔案大小 -i 最多可以暫停的信號數 -k 為本行程分配之最大 kqueues 數量 -l 一個行程可能鎖定的最大記憶體尺寸 -m 最大的常駐記憶體大小 -n 最多可開啟之檔案描述元個數 -p 管道緩衝區大小 -q POSIX 訊息佇列的最大位元組數 -r 即時排程的最大優先順序 -s 最大堆疊尺寸 -t 最多可用的 CPU 時間,以秒為單位 -u 最大使用者行程數 -v 虛擬記憶體尺寸 -x 最大的檔案鎖數量 -P 最大可開啟的偽終端數量 -R 一個即時執行緒在堵塞前可執行的最長時間 -T 最大執行緒數量 並非所有選項在所有系統上可用。 如果有指定 LIMIT,則這個變數是指定資源的新數值;特殊 LIMIT 數值 「soft」、「hard」和「unlimited」,分別表示目前的彈性限制、固定限制和 無限制。若未指定,則輸出指定資源的目前限制值,不傳入選項則假定為 -f 取值都是 1024 位元組為單位,除了 -t 以秒為單位、-p 以 512 位元組遞增、 -u 為無單位的行程數量。 結束狀態: 回傳成功,除非使用了無效的選項或者錯誤發生。
567.
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.
2022-08-25
顯示或設定檔案模式遮罩。 設定使用者檔案建立遮罩為 MODE 模式。如果省略了 MODE,則 印出目前遮罩的值。 如果 MODE 模式以數字開頭,則被當做八進位數字解析;否則是一個 chmod(1) 可接收的符號模式串。 選項: -p 如果省略 MDOE 模式,以可重用為輸入的格式輸入 -S 以符號形式輸出,否則以八進位數字格式輸出 結束狀態: 回傳成功,除非使用了無效的 MODE 模式或者選項。
2020-11-10
顯示或設定檔案模式遮罩。 設定使用者檔案建立遮罩為 MODE 模式。如果省略了 MODE,則 印出目前遮罩的值。 如果 MODE 模式以數字開頭,則被當做八進位數字解析;否則是一個 chmod(1) 可接收的符號模式串。 選項: -p 如果省略 MDOE 模式,以可重用為輸入的格式輸入 -S 以符號形式輸出,否則以八進位數字格式輸出 退出狀態: 回傳成功,除非使用了無效的 MODE 模式或者選項。
568.
Wait for job completion and return exit status. Waits for each process identified by an 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 job specification, waits for all processes in that job's pipeline. If the -n option is supplied, waits for a single job from the list of IDs, or, if no IDs are supplied, for the next job to complete and returns its exit status. If the -p option is supplied, the process or job identifier of the job for which the exit status is returned is assigned to the variable VAR named by the option argument. The variable will be unset initially, before any assignment. This is useful only when the -n option is supplied. If the -f option is supplied, and job control is enabled, waits for the specified ID to terminate, instead of waiting for it to change status. Exit Status: Returns the status of the last ID; fails if ID is invalid or an invalid option is given, or if -n is supplied and the shell has no unwaited-for children.
2022-08-25
等待工作完成並回傳結束狀態。 等待以 ID 編號識別的行程-其中 ID 可以是行程編號或者工作規格— 並回報其終止狀態。若未指定 ID,則等待所有的目前活躍子行程, 並設定回傳狀態為 0。如果 ID 是工作規格,則等待工作管線中的 所有行程。 若指定了 -n 選項,則等待 ID 清單中的單一個工作;若未指定,則 等待下一個工作完成,並回傳其結束狀態。 如果指定了 -p 選項,則會將選項引數中命名的 VAR 變數,指定 為回傳結束狀態之工作的行程或工作識別子。這個變數在指定前, 會先進行 unset。這個僅在指定 -n 選項時有幫助。 如果指定了 -f 選項且有啟用工作管理,則等待指定 ID 終止, 而非等待其變更狀態。 結束狀態: 回傳最後一個 ID 行程的狀態;如果 ID 或指定之選項無效; 或有指定 -n,shell 卻沒有要不等待 (unwaited) 的子行程, 則回傳失敗。
569.
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.
2022-08-25
等待行程完成並且回傳結束狀態。 等待指定行程並通報它的終止狀態。如果沒有提供 PID,則目前所有的活躍 子行程都會被等待,並且回傳碼為零。PID 必須為行程識別碼。 結束狀態: 回傳行程 ID 的狀態;如果 PID 是無效的行程識別碼或者指定了無效的選項則失敗。
2020-11-10
等待行程完成並且回傳退出狀態。 等待指定行程並通報它的終止狀態。如果沒有提供 PID,則目前所有的活躍 子行程都會被等待,並且回傳碼為零。PID 必須為行程識別碼。 退出狀態: 回傳行程 ID 的狀態;如果 PID 是無效的行程識別碼或者指定了無效的選項則失敗。
570.
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.
2022-08-25
為列表中的每個成員執行指令。 「for」迴圈為列表中的每個成員執行一系列的指令。如果沒有 「in WORDS ...;」則假定使用「in "$@"」。對於 WORDS 中的每 個元素,<名稱> 被設定為該元素,並且執行 <指令>。 結束狀態: 回傳最後執行指令的狀態。
2020-11-10
為列表中的每個成員執行指令。 「for」迴圈為列表中的每個成員執行一系列的指令。如果沒有 「in WORDS ...;」則假定使用「in "$@"」。對於 WORDS 中的每 個元素,<名稱> 被設定為該元素,並且執行 <指令>。 退出狀態: 回傳最後執行指令的狀態。
571.
Arithmetic for loop. Equivalent to (( EXP1 )) while (( EXP2 )); do COMMANDS (( EXP3 )) 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.
2022-08-25
算術 for 迴圈。 等價於 (( EXP1 )) while (( EXP2 )); do <指令> (( EXP3 )) done EXP1、EXP2 和 EXP3 都是算術表示式。如果省略任何表示式, 則等同於使用了求值為 1 的表示式。 結束狀態: 回傳最後執行指令的狀態。
2020-11-10
算術 for 迴圈。 等價於 (( EXP1 )) while (( EXP2 )); do <指令> (( EXP3 )) done EXP1、EXP2 和 EXP3 都是算術表示式。如果省略任何表示式, 則等同於使用了求值為 1 的表示式。 退出狀態: 回傳最後執行指令的狀態。
572.
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.
2022-08-25
從列表中選取詞並且執行指令。 WORDS 變數被展開,產生一個字詞的列表。展開的字詞集合被印出 在標準錯誤輸出裝置上,每個以一個數字做字首。如果沒有「in WORDS」 則假定使用「in "$@"」。PS3 提示符會被顯示並且從標準輸入讀入一列 如果該列由被顯示字詞對應的數字組成,則 <名稱> 變數被設定為相應 的字詞。如果列為空,則 WORDS 變數和提示符被重新顯示。如果讀取了 檔案結束符,則指令完成。讀入任何其他的值會導致 <名稱> 變數被設定 為空。讀入的列被存放在變數 REPLY 中。<指令> 在每次選擇 之後執行直到執行一個 break 指令。 結束狀態: 回傳最後一個執行指令的狀態。
2020-11-10
從列表中選取詞並且執行指令。 WORDS 變數被展開,產生一個字詞的列表。展開的字詞集合被印出 在標準錯誤輸出裝置上,每個以一個數字做字首。如果沒有「in WORDS」 則假定使用「in "$@"」。PS3 提示符會被顯示並且從標準輸入讀入一列 如果該列由被顯示字詞對應的數字組成,則 <名稱> 變數被設定為相應 的字詞。如果列為空,則 WORDS 變數和提示符被重新顯示。如果讀取了 檔案結束符,則指令完成。讀入任何其他的值會導致 <名稱> 變數被設定 為空。讀入的列被存放在變數 REPLY 中。<指令> 在每次選擇 之後執行直到執行一個 break 指令。 退出狀態: 回傳最後一個執行指令的狀態。
573.
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 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.
2022-08-25
通報管道執行的消耗時間。 執行 PIPELINE 並且印出 PIPELINE 終止時實際時間、使用者 CPU 時間和系統 CPU 時間的總結。 選項: -p 用可移植的 POSIX 格式印出用時總結。 TIMEFORMAT 變數的值被做為輸出格式。 結束狀態: 回傳狀態即 PIPELINE 的回傳狀態。
2020-11-10
通報管道執行的消耗時間。 執行 PIPELINE 並且印出 PIPELINE 終止時實際時間、使用者 CPU 時間和系統 CPU 時間的總結。 選項: -p 用可移植的 POSIX 格式印出用時總結。 TIMEFORMAT 變數的值被做為輸出格式。 退出狀態: 回傳狀態即 PIPELINE 的回傳狀態。
574.
Execute commands based on pattern matching. Selectively execute COMMANDS based upon WORD matching PATTERN. The `|' is used to separate multiple patterns. Exit Status: Returns the status of the last command executed.
2022-08-25
基於模式符合來執行指令。 基於 PATTERN 模式符合的字詞 WORD,有選擇的執行 <指令>。 「|」用於分隔多個模式。 結束狀態: 回傳最後一個執行指令的狀態。
2020-11-10
基於模式符合來執行指令。 基於 PATTERN 模式符合的字詞 WORD,有選擇的執行 <指令>。 「|」用於分隔多個模式。 退出狀態: 回傳最後一個執行指令的狀態。
575.
Execute commands based on conditional. The `if COMMANDS' list is executed. If its exit status is zero, then the `then COMMANDS' list is executed. Otherwise, each `elif COMMANDS' list is executed in turn, and if its exit status is zero, the corresponding `then COMMANDS' list is executed and the if command completes. Otherwise, the `else COMMANDS' list is executed, if present. The exit status of the entire construct is the exit status of the last command executed, or zero if no condition tested true. Exit Status: Returns the status of the last command executed.
2022-08-25
根據條件執行指令。 「if <指令>」列表被執行。如果結束狀態為零,則執行「then <指令>」 列表。否則按順序執行每個「elif <指令>」列表,並且如果它的結束狀態為 零,則執行對應的「then <指令>」列表並且 if 指令終止。否則如果存在的 情況下,執行「else <指令>」列表。整個結構的結束狀態是最後一個執行 指令的狀態,或者如果沒有條件測試為真的話,則為零。 結束狀態: 回傳最後一個執行指令的狀態。
2020-11-10
根據條件執行指令。 「if <指令>」列表被執行。如果退出狀態為零,則執行「then <指令>」 列表。否則按順序執行每個「elif <指令>」列表,並且如果它的退出狀態為 零,則執行對應的「then <指令>」列表並且 if 指令終止。否則如果存在的 情況下,執行「else <指令>」列表。整個結構的退出狀態是最後一個執行 指令的狀態,或者如果沒有條件測試為真的話,則為零。 退出狀態: 回傳最後一個執行指令的狀態。
576.
Execute commands as long as a test succeeds. Expand and execute COMMANDS as long as the final command in the `while' COMMANDS has an exit status of zero. Exit Status: Returns the status of the last command executed.
2020-11-10
只要測試成功即執行指令。 只要在「while」<指令> 中的最終指令回傳結果為 0,則 展開並執行 <指令>。 退出狀態: 回傳最後一個執行指令的狀態。
577.
Execute commands as long as a test does not succeed. Expand and execute COMMANDS as long as the final command in the `until' COMMANDS has an exit status which is not zero. Exit Status: Returns the status of the last command executed.
2020-11-10
當測試不同過時執行指令。 「until」<指令> 的最終指令回傳狀態不為 0 時, 展開並執行 <指令>。 退出狀態: 回傳最後一個執行指令的狀態。
578.
Create a coprocess named NAME. Execute COMMAND asynchronously, with the standard output and standard input of the command connected via a pipe to file descriptors assigned to indices 0 and 1 of an array variable NAME in the executing shell. The default NAME is "COPROC". Exit Status: The coproc command returns an exit status of 0.
2022-08-25
建立一個以 <名稱> 為名的副行程。 非同步執行 <指令>,在執行 shell 中的陣列變數 <名稱> 的 0 號和 1 號元素做為檔案描述符,以一個管道連接指令 分別做為指令的標準輸出和輸入裝置。 預設的 <名稱> 是「COPROC」。 結束狀態: coprc 指令回傳離開代碼 0。
2020-11-10
建立一個以 <名稱> 為名的副行程。 非同步執行 <指令>,在執行 shell 中的陣列變數 <名稱> 的 0 號和 1 號元素做為檔案描述符,以一個管道連接指令 分別做為指令的標準輸出和輸入裝置。 預設的 <名稱> 是「COPROC」。 退出狀態: coprc 指令回傳離開代碼 0。
2019-02-23
建立一個以 NAME 為名的副行程。 非同步執行 COMMANDS 命令,在執行 shell 中的陣列變數 NAME 的 0 號和 1 號元素做為檔案描述符,以一個管道連接命令 分別做為命令的標準輸出和輸入裝置。 預設的 NAME 是「COPROC」。 退出狀態: coprc 指令回傳離開代碼 0。
579.
Define shell function. Create a shell function named NAME. When invoked as a simple command, NAME runs COMMANDs in the calling shell's context. When NAME is invoked, the arguments are passed to the function as $1...$n, and the function's name is in $FUNCNAME. Exit Status: Returns success unless NAME is readonly.
2022-08-25
定義 shell 函數。 建立一個以 <名稱> 為名的 shell 函數。當做為一個簡單的指令啟用時, <名稱> 函數執行呼叫 shell 語境中的 COMMANDs 指令。當 <名稱> 被啟用時,參數做為 $1…$n 被傳遞給函數,函數的名字儲存在變數 $FUNCNAME 中。 結束狀態: 回傳成功除非 <名稱> 為唯讀。
2020-11-10
定義 shell 函數。 建立一個以 <名稱> 為名的 shell 函數。當做為一個簡單的指令啟用時, <名稱> 函數執行呼叫 shell 語境中的 COMMANDs 指令。當 <名稱> 被啟用時,參數做為 $1…$n 被傳遞給函數,函數的名字儲存在變數 $FUNCNAME 中。 退出狀態: 回傳成功除非 <名稱> 為唯讀。
580.
Group commands as a unit. Run a set of commands in a group. This is one way to redirect an entire set of commands. Exit Status: Returns the status of the last command executed.
2022-08-25
將指令組合為一個單元。 執行群組中的指令集合。這是對整個指令集合 做重定向的方法之一。 結束狀態: 回傳最後一個執行指令的狀態。
2020-11-10
將指令組合為一個單元。 執行群組中的指令集合。這是對整個指令集合 做重定向的方法之一。 退出狀態: 回傳最後一個執行指令的狀態。
581.
Resume job in foreground. Equivalent to the JOB_SPEC argument to the `fg' command. Resume a stopped or background job. JOB_SPEC can specify either a job name or a job number. Following JOB_SPEC with a `&' places the job in the background, as if the job specification had been supplied as an argument to `bg'. Exit Status: Returns the status of the resumed job.
2022-08-25
在前臺繼續工作 對於 JOB_SPEC 參數來說和「fg」指令等同。繼續一個 停止的或者後臺工作。JOB_SPEC 可以指定一個工作 名字或工作號。在 JOB_SPEC 後加上一個「&」將會把 工作放至後臺,就像工作規格被做為「bg」指令的參數 執行一樣。 結束狀態: 回傳被繼續的工作狀態。
2020-11-10
在前臺繼續工作 對於 JOB_SPEC 參數來說和「fg」指令等同。繼續一個 停止的或者後臺工作。JOB_SPEC 可以指定一個工作 名字或工作號。在 JOB_SPEC 後加上一個「&」將會把 工作放至後臺,就像工作規格被做為「bg」指令的參數 執行一樣。 退出狀態: 回傳被繼續的工作狀態。
582.
Evaluate arithmetic expression. The EXPRESSION is evaluated according to the rules for arithmetic evaluation. Equivalent to `let "EXPRESSION"'. Exit Status: Returns 1 if EXPRESSION evaluates to 0; returns 0 otherwise.
2022-08-25
求值算術表示式。 <表示式> 按照算術法則進行求值。 等價於「let 表示式」。 結束狀態: 如果表示式求值為 0 則回傳 1;否則回傳 0。