2

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.

ppr
  • 1,907
  • 7
  • 23
  • 40
  • Probably helpful: https://unix.stackexchange.com/questions/286351/what-is-a-fast-command-line-way-to-switch-between-multiple-directories-for-syste – phk Oct 30 '16 at 18:55

1 Answers1

1
export CDPATH="/media/user/xxX/yyy/"
Ipor Sircer
  • 14,546
  • 1
  • 27
  • 39