Files
tldr/pages.zh/osx/popd.md
2019-03-15 11:47:29 +00:00

16 lines
340 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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