2

This question already has an answer here:

I am looking a way to create shortcuts for the cd command. My goal is to go quickly to distant folders. I have a new (big) drive which is not in my /home folder (but in /media/user/xxX/yyy/) and I need to access all the time to this location.

Is it possible to create a command such as "cd my_distant_folder" which save my the time to write the entire path?

I already thought about alias in my ~./bash_aliases but it would be a new command and not an argument of the cd command.

marked as duplicate by Gilles bash Oct 30 '16 at 23:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1
export CDPATH="/media/user/xxX/yyy/"

Not the answer you're looking for? Browse other questions tagged or ask your own question.