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.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
ppr
  • 1,887
  • 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,376
  • 1
  • 27
  • 34