Change to the previous directory
cd -
will move you to the previous directory
For example, if you are in /var/www/hello
and you run cd ~/world
. Then, running cd -
will return you to /var/www/hello
.
Written by Todd Wolfson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#