是否可以创建用作软链接的shell脚本?

时间:2015-04-23 01:17:15

标签: shell unix scripting symlink

我只是不知道是否有办法将shell脚本创建为软链接/符号链接?谢谢。

1 个答案:

答案 0 :(得分:1)

Type this in terminal:

ln -s /path/to/shell/script/to/be/linked /path/to/shell/script/soft/link

Example: ln -s /usr/local/script1.sh /usr/scripts/

This command will create a soft link for script1.sh in folder /usr/scripts

NOTE: Now you can execute the shell script using soft link itself