diff --git a/pages/common/pushd.md b/pages/linux/pushd.md similarity index 100% rename from pages/common/pushd.md rename to pages/linux/pushd.md diff --git a/pages/osx/pushd.md b/pages/osx/pushd.md new file mode 100644 index 0000000000..97d7a43756 --- /dev/null +++ b/pages/osx/pushd.md @@ -0,0 +1,15 @@ +# pushd + +> Place a directory on a stack so it can be accessed later. + +- 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 0000000000..1efe854a2b --- /dev/null +++ b/pages/windows/pushd.md @@ -0,0 +1,7 @@ +# pushd + +> Place a directory on a stack so it can be accessed later. + +- Switch to directory and push it on the stack: + +`pushd {{directory}}`