本文介绍了如何创建路径别名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
那么 cs将被映射到 / College /,以便我可以运行命令 cd cs?
So "cs" will be mapped to "/College/" so that I can run the command "cd cs"?
推荐答案我相信您是在询问如何创建符号链接(或符号链接),例如:
I believe you are asking about how to create a symbolic link (or symlink) like:
ln -s College cs虽然,还有其他方法可以加快工作流程,例如设置CDPATH:
Although, there are other ways to speed up your workflow, such as setting the CDPATH:
export CDPATH=.:~/:/College/或者您甚至可以将 cs作为别名来执行 cd / College /操作:
Or you could even make "cs" an alias that will perform the action "cd /College/":
alias cs='cd /College/'如果您执行上述操作,则输入 cs 而不是 cd cs 即可到达那里。
If you did the above, you would type cs instead of cd cs to get there.
另请参见
- ln -POSIX 2004标准中ln命令的手册页
- 符号链接-C函数手册页,用于根据POSIX 2004标准创建符号链接
- 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
更多推荐
如何创建路径别名?
发布评论