diff --git a/pages/linux/popd.md b/pages/linux/popd.md new file mode 100644 index 00000000000000..34576cbe7c1429 --- /dev/null +++ b/pages/linux/popd.md @@ -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` diff --git a/pages/osx/popd.md b/pages/osx/popd.md new file mode 100644 index 00000000000000..fab4246dc249dc --- /dev/null +++ b/pages/osx/popd.md @@ -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` diff --git a/pages/windows/popd.md b/pages/windows/popd.md new file mode 100644 index 00000000000000..b4ff0870fcefb3 --- /dev/null +++ b/pages/windows/popd.md @@ -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`