我只是不知道是否有办法将shell脚本创建为软链接/符号链接?谢谢。
答案 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