1 Star 0 Fork 4.9K

bill / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cd.md 2.78 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

cd

Command Function

This command is used to change the current working directory.

Syntax

cd [path]

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

path

Indicates the file path.

The user must have the execution (search) permission for the specified directory.

Usage

  • If the path parameter is not specified, the system switches to the root directory.
  • If the path parameter is specified, the system switches to the specified path.
  • The path value starting with a slash (/) represents the root directory.
  • The path value starting with a dot (.) represents the current directory.
  • The path value starting with two dots (..) represents the parent directory.

Example

Enter cd ...

Output

Figure 1 Directory switching result

1
https://gitee.com/ximeibaba/docs.git
git@gitee.com:ximeibaba/docs.git
ximeibaba
docs
docs
master

搜索帮助