> For the complete documentation index, see [llms.txt](https://sunzsh.gitbook.io/xiaoshan.bug/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sunzsh.gitbook.io/xiaoshan.bug/iterm-kuai-su-cd-dao-mou-ge-ls-jie-guo-mu-lu-de-fang-fa.md).

# 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 直接拖

想进哪个就进哪个
