executing shell script without calling sh implicitly

后端 未结 5 1161
夕颜
夕颜 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:38

    You can make the shell script executable (chmod +x shellscript.sh). Then you can link to it from /usr/bin (ln -s shellscript.sh /usr/bin/shellscript).

提交回复
热议问题