Added an another argument to the list (#29869)
cd $HOME also moves to the home directory
This commit is contained in:
committed by
Christopher McCormack
parent
624ce364df
commit
5e8738ff10
@ -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`.
|
- `~` 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`
|
- `-` 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.
|
- `~[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.
|
- Typing 'pwd' will show you which directory you are currently working in.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
Reference in New Issue
Block a user