Create .sh file

681 views Asked by At

When I create .sh file, I need to give permission for him to be executed, there is a file that can be configured or command applied so I can already create the file with permission of execution?

1

There are 1 answers

0
NanoPortal On

Through Terminal, type in this command:

chmod +x file.sh

To execute the command, do:

./file.sh

If you want an application, you can make an Automator using the previous commands.