diff --git a/pages/common/pushd.md b/pages/linux/pushd.md similarity index 83% rename from pages/common/pushd.md rename to pages/linux/pushd.md index 97d7a4375..56095473e 100644 --- a/pages/common/pushd.md +++ b/pages/linux/pushd.md @@ -1,6 +1,7 @@ # pushd > Place a directory on a stack so it can be accessed later. +> See also `popd` to switch back to original directory. - Switch to directory and push it on the stack: diff --git a/pages/osx/pushd.md b/pages/osx/pushd.md new file mode 100644 index 000000000..56095473e --- /dev/null +++ b/pages/osx/pushd.md @@ -0,0 +1,16 @@ +# pushd + +> Place a directory on a stack so it can be accessed later. +> See also `popd` to switch back to original directory. + +- Switch to directory and push it on the stack: + +`pushd < {{directory}}` + +- Switch first and second directories on the stack: + +`pushd` + +- Rotate stack by making the 5th element the top of the stack: + +`pushd +4` diff --git a/pages/windows/pushd.md b/pages/windows/pushd.md new file mode 100644 index 000000000..bdce0068d --- /dev/null +++ b/pages/windows/pushd.md @@ -0,0 +1,8 @@ +# pushd + +> Place a directory on a stack so it can be accessed later. +> See also `popd` to switch back to original directory. + +- Switch to directory and push it on the stack: + +`pushd {{directory}}`