1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/common/popd.md
K.B.Dharun Krishna 5c26174aa9
pages/*: update links and more info link script (#11390)
* pages/*: update links and more info link script

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* cleanup: reformat code

* ax-webapp: fix link

* curl: fix false positive

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-11-06 23:14:12 +05:30

16 lines
456 B
Markdown

# popd
> 通过 pushd shell 内置程序删除目录堆栈中的目录。
> 更多信息:<https://www.gnu.org/software/bash/manual/html_node/Directory-Stack-Builtins.html>.
- 从堆栈中删除顶部目录,并用 `cd` 跳转到该目录:
`popd`
- 删除第 n 个目录(从零开始,以用 `dirs` 打印的列表左侧开始):
`popd +N`
- 删除第 n 个目录(从零开始,以用 `dirs` 打印的列表右侧开始):
`popd -N`