Add cd - (#843)
This commit is contained in:
parent
75ba17605d
commit
2bef29186d
10
bash.md
10
bash.md
|
@ -637,6 +637,16 @@ read -n 1 ans # Just one character
|
|||
|
||||
See [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_parameters_and_shell_variables).
|
||||
|
||||
### Go to previous directory
|
||||
|
||||
```bash
|
||||
pwd # /home/user/foo
|
||||
cd bar/
|
||||
pwd # /home/user/foo/bar
|
||||
cd -
|
||||
pwd # /home/user/foo
|
||||
```
|
||||
|
||||
## Also see
|
||||
{: .-one-column}
|
||||
|
||||
|
|
Loading…
Reference in New Issue