tldr/pages.zh/osx/popd.md

16 lines
340 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# popd
> 通过 pushd shell内置程序删除目录堆栈中的目录.
- 从堆栈中删除顶部目录,并用 `cd` 跳转到该目录:
`popd`
- 删除第n个目录从零开始, 以用 `dirs` 打印的列表左侧开始):
`popd +N`
- 删除第n个目录从零开始, 以用 `dirs` 打印的列表右侧开始):
`popd -N`