Y
Hacker News
new
|
ask
|
show
|
jobs
by
stevekemp
1942 days ago
A raw "cd" with no arguments will take you back to your home-directory. Of course "~" is one less character to type, but on the off-chance you didn't know.
1 comments
JNRowe
1942 days ago
As we're offering alternatives. Either `shopt autocd` in bash or `setopt auto_cd` in zsh, then ~ changes to home by simply
being
a path.
link