loading...

Discussion on: Bash: How To Teleport In The Terminal

Collapse
dom111 profile image
Dom Hastings

Another useful feature of cd, calling it with no arguments takes you to ~. This can save you doing cd ../../../.. or cd ~!

Collapse
kenbellows profile image
Ken Bellows

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