loading...

re: Bash: How To Teleport In The Terminal VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Another useful feature of cd, calling it with no arguments takes you to ~. This can save you doing cd ../../../.. or cd ~!
 

A side effect of this that sometimes catches me off guard is that if you try to cd to an environment variable that doesn't exist, or if you misspell a variable (e.g. cd $PORJ_HOME instead of $PROJ_HOME), you end up running plain cd by accident and going home instead! Always takes me a second to realize what happened

Code of Conduct Report abuse