跳到主要内容

cd

切换当前工作目录。

用法

cd [dir]

说明

  • 无参数时切换到根目录 /
  • 失败时显示 cd: <path>: No such file or directory

示例

# 切换到根目录
cd /

# 切换到子目录
cd /device/clk