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/pushd.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

17 lines
438 B
Markdown

# pushd
> 将目录放在堆栈上,以便以后访问。
> 另请参阅 `popd` 命令说明,以切换回原始目录。
> 更多信息:<https://www.gnu.org/software/bash/manual/html_node/Directory-Stack-Builtins.html>.
- 切换到目录并将其添加到堆栈上:
`pushd {{directory}}`
- 切换堆栈上的第一个和第二个目录:
`pushd`
- 通过使第 5 个元素成为堆栈的顶部来旋转堆栈:
`pushd +4`