How to create a path alias?

So, "cs" will be displayed in "/ College /" so that I can run the command "cd cs"?

+3
source share
1 answer

I suppose you are asking how to create a symbolic link (or a symbolic link), for example:

ln -s College cs

Although there are other ways to speed up your workflow, for example, install CDPATH:

export CDPATH=.:~/:/College/

Or you can even make "cs" an alias that performs the action "cd / College /":

alias cs='cd /College/'

If you have done this, you must enter csinstead cd csto get there.

see also

  • ln - man page for the ln command from the POSIX 2004 standard
  • symlink - C POSIX 2004
+12

Source: https://habr.com/ru/post/1789386/


All Articles