popd: add page (#1517)

This commit is contained in:
Starbeamrainbowlabs 2017-10-11 11:25:06 +01:00 committed by GitHub
commit 40243341f6
3 changed files with 37 additions and 0 deletions

15
pages/linux/popd.md Normal file
View File

@ -0,0 +1,15 @@
# popd
> Remove a directory placed on the directory stack by the `pushd` command.
- Remove the top directory from the stack and cd to it:
`popd`
- Remove the Nth directory (starting from zero to the left from the list printed with `dirs`):
`popd +N`
- Remove the Nth directory (starting from zero to the right from the list printed with `dirs`):
`popd -N`

15
pages/osx/popd.md Normal file
View File

@ -0,0 +1,15 @@
# popd
> Remove a directory placed on the directory stack via the pushd shell built-in.
- Remove the top directory from the stack and cd to it:
`popd`
- Remove the Nth directory (starting from zero to the left from the list printed with `dirs`):
`popd +N`
- Remove the Nth directory (starting from zero to the right from the list printed with `dirs`):
`popd -N`

7
pages/windows/popd.md Normal file
View File

@ -0,0 +1,7 @@
# popd
> Changes the current directory to the directory stored by the `pushd` command.
- Switch to directory at the top of the stack:
`popd`