# iterm快速cd到某个ls结果目录的方法

{% embed url="<https://v.douyin.com/rjmYy7h/>" %}

{% embed url="<https://www.bilibili.com/video/BV13T4y167m1/>" %}

我发现在iterm里执行 ls 啊

或者 ll 之后

可以直接按住 command 拖拽这些目录

实现一个 cd 的效果

但这里边有个细节就是

在拖拽的过程中不要松开command

一旦松开 command 就相当于

复制这个路径的功能

所以就按住 command 直接拖

想进哪个就进哪个


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sunzsh.gitbook.io/xiaoshan.bug/iterm-kuai-su-cd-dao-mou-ge-ls-jie-guo-mu-lu-de-fang-fa.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
