From ed17574351a84b2a2d75aa58b5b4e9d62984e0b3 Mon Sep 17 00:00:00 2001 From: "Coo.King" <39448470+Pega-Stellar@users.noreply.github.com> Date: Fri, 19 Oct 2018 20:40:55 +0700 Subject: [PATCH] Fix(guide): Add "cd -" to manual --- guide/english/bash/bash-cd/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/guide/english/bash/bash-cd/index.md b/guide/english/bash/bash-cd/index.md index 3aaef121c5..aadec79767 100644 --- a/guide/english/bash/bash-cd/index.md +++ b/guide/english/bash/bash-cd/index.md @@ -12,6 +12,7 @@ There are a few really helpful arguments to aid this: - `..` can be used to move up one folder, use `cd ..`, and can be combined to move up multiple levels `../../my_folder` - `/` is the root of your system to reach core folders, such as `system`, `users`, etc. - `~` is the home directory, usually the path `/users/username`. Move back to folders referenced relative to this path by including it at the start of your path, for example `~/projects`. +- `-` can be used to move to the previous directory. For example, you are in `/A`, then cd to `/B`, use `cd -` and you are back to `/A` - `~[number]` will cd to that entry from the output of `dirs` directories can be pushed on poped to the 'dirs' stack using `pushd` and `popd` respectively. - Typing only `cd` will move to the home directory works same as `cd ~` ### More Information: