mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
a9ff84e817
Co-authored-by: DustMerlin <39292795+DustMerlin@users.noreply.github.com>
558 B
558 B
pushd
将目录放在堆栈上,以便以后访问。 另请参阅:
popd切换回原始目录和dirs显示目录堆栈内容。 更多信息:https://www.gnu.org/software/bash/manual/bash.html#index-pushd。
- 切换到目录并将其添加到堆栈上:
pushd {{路径/到/目录}}
- 切换堆栈上的第一个和第二个目录:
pushd
- 通过使第 5 个元素成为堆栈的顶部来旋转堆栈:
pushd +4
- 将堆栈向左旋转 4 次(当前目录通过替换第 5 个元素保持在顶部):
pushd -n +4