diff --git a/bash.md b/bash.md index de229b586..a4c54dc82 100644 --- a/bash.md +++ b/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}