1 Star 0 Fork 5.3K

baiyun / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cd.md 2.54 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

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/baiyunhaishang/docs.git
git@gitee.com:baiyunhaishang/docs.git
baiyunhaishang
docs
docs
master

搜索帮助