how to create a path alias?

天大地大妈咪最大 提交于 2019-12-03 08:54:21

I believe you are asking about how to create a symbolic link (or symlink) like:

ln -s College cs

Although, there are other ways to speed up your workflow, such as setting the CDPATH:

export CDPATH=.:~/:/College/

Or you could even make "cs" an alias that will perform the action "cd /College/":

alias cs='cd /College/'

If you did the above, you would type cs instead of cd cs to get there.

See also

  • ln - man page for the ln command from the POSIX 2004 standard
  • symlink - man page for the C function to create symlinks from the POSIX 2004 standard
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!