How do I make this file.sh executable via double click?

后端 未结 5 1585
长发绾君心
长发绾君心 2020-11-28 17:42

First off I\'m using Mac.

Next, I need to execute this \"file.sh\" we will call it. Everytime I need to execute it I have to open Terminal and type:

         


        
5条回答
  •  野性不改
    2020-11-28 18:27

    you can change the file executable by using chmod like this

    chmod 755 file.sh
    

    and use this command for execute

    ./file.sh
    

提交回复
热议问题