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.


Kalle Tolonen
Jan. 22, 2024
Last updated on Jan. 31, 2024

Nice shortcuts

#Change to user's home dir
cd

# Change to previous dir
cd -

Same works with git

git checkout -

Comments

No published comments yet.

Add a comment

Your comment may be published.