executing shell script without calling sh implicitly

后端 未结 5 1164
夕颜
夕颜 2021-02-01 18:05

I was wondering if it is possible to make a \"link\" in usr/bin (i.e.) that leads to a shell-script.

But I want just to write

% shellscript
5条回答
  •  逝去的感伤
    2021-02-01 18:28

    Yes. You can use ln to create a link to shellscript.sh named shellscript. You will then need to make it executable, but after that (assuming /usr/bin is on your path) you can run it with shellscript.

提交回复
热议问题