Browsing Chinese (Simplified) translation

517 of 586 results
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[tab]force symbolic links to be followed: resolve symbolic
[tab][tab]links in DIR after processing instances of `..'
-P[tab]use the physical directory structure without following
[tab][tab]symbolic links: resolve symbolic links in DIR before
[tab][tab]processing instances of `..'
-e[tab]if the -P option is supplied, and the current working
[tab][tab]directory cannot be determined successfully, exit with
[tab][tab]a non-zero status
-@[tab]on systems that support it, present a file with extended
[tab][tab]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.
[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 变量 HOME 的值。

变量 CDPATH 定义了搜索含有 <目录> 的目录的搜索路径。CDPATH 中额外的
目录名称以冒号 (:) 隔开。空的 CDPATH 表示当前目录。如果 <目录> 以
斜杠 (/) 开头,则不会使用 CDPATH。

如果找不到目录,并且 shell 选项 "cdable_vars" 被设定,则假定参数是一个
变量名。如果该变量有值,则它的值被当作 <目录>。

选项:
-L[tab]强制跟随符号链接: 在处理 ".." 之后解析 <目录> 中的符号链接
-P[tab]使用物理目录结构而不跟随符号链接: 在处理 ".." 之前
[tab][tab]解析 <目录> 中的符号链接
-e[tab]如果使用了 -P 选项,但无法成功确定当前工作目录时,以非零状态退出
-@[tab]在支持扩展属性的系统上,将一个具有扩展属性的文件当作
[tab][tab]含有文件属性的目录。

默认情况下,跟随符号链接,正如指定了 "-L" 一样。
".." 的处理方式是,移除路径名中的上一个组成部分,以 <目录> 的开头
或者斜杠为界限。

退出状态:
如果目录改变,或在使用 -P 选项时 $PWD 修改成功,则返回 0;否则返回非零。
Translated by Wenbin Lv
Located in builtins.c:387
517 of 586 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.