Added navigation with dirs/push/popd (#19179)

This commit is contained in:
Vega Deftwing
2018-10-15 20:56:38 -07:00
committed by Quincy Larson
parent f7c29339d5
commit 9050a085dc

View File

@ -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` - `..` 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 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`. - `~` 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`.
- `~[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 ~` - Typing only `cd` will move to the home directory works same as `cd ~`
### More Information: ### More Information:
* [Wikipedia](https://en.wikipedia.org/wiki/Cd_(command)) * [Wikipedia](https://en.wikipedia.org/wiki/Cd_(command))