Skip to content

Commit

Permalink
popd: add page (tldr-pages#1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrl authored Oct 11, 2017
2 parents e274d45 + 57d3300 commit 4024334
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pages/linux/popd.md
Original file line number Diff line number Diff line change
@@ -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 changes: 15 additions & 0 deletions pages/osx/popd.md
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions pages/windows/popd.md
Original file line number Diff line number Diff line change
@@ -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`

0 comments on commit 4024334

Please sign in to comment.