Bash is more versatile than you think

cd, or change directory, is a fundamental command in Unix-like systems. Bash params can be used with it quite efficiently.

Nice shortcuts

#Change to user's home dir
cd

# Change to previous dir
cd -

Same works with git

git checkout -

All articles


Comments

No published comments yet.


Add a Comment

Your comment is held for review before it appears publicly.

Your email is never published or shared.

Up to 2,000 characters.

Tick the box, then click Submit right away (Google expires the check after about two minutes).