From 5e8738ff10801e8c9f8329992bbb694d83e6baa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Sz=C5=91nyi?= Date: Tue, 15 Jan 2019 23:21:31 +0100 Subject: [PATCH] Added an another argument to the list (#29869) cd $HOME also moves to the home directory --- guide/english/bash/bash-cd/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/bash/bash-cd/index.md b/guide/english/bash/bash-cd/index.md index 7880b6eb4e..a1e26084ac 100644 --- a/guide/english/bash/bash-cd/index.md +++ b/guide/english/bash/bash-cd/index.md @@ -20,7 +20,7 @@ There are a few really helpful arguments to help with this: - `~` 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 or popped to the 'dirs' stack using `pushd` and `popd` respectively. -- Typing only `cd` will move to the home directory works same as `cd ~` +- Typing only `cd` will move to the home directory works same as `cd ~`. `cd $HOME` will also move to the home directory. - Typing 'pwd' will show you which directory you are currently working in. ### Example