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

17 lines
327 B
Markdown
Raw Normal View History

2019-03-13 11:31:36 +08:00
# pushd
> 将目录放在堆栈上,以便以后访问.
2019-10-20 10:34:33 +08:00
> 另请参阅 `popd` 命令说明,以切换回原始目录.
2019-03-13 11:31:36 +08:00
- 切换到目录并将其添加到堆栈上:
`pushd {{directory}}`
- 切换堆栈上的第一个和第二个目录:
`pushd`
2019-10-20 10:34:33 +08:00
- 通过使第 5 个元素成为堆栈的顶部来旋转堆栈:
2019-03-13 11:31:36 +08:00
`pushd +4`