0

I want to know how to make a program that you can edit and run. The problem is I don't know what the file extension is, like how you can make a text document on windows and save as filename.bat.

spooky
  • 1

1 Answers1

0

You do not have to use a filename extension, but the file permission has to be set executable for the user who should be able to run it (unless you source a file in shell). See man chmod.

By using a shebang you can tell which interpreter to use to execute a script.

jarno
  • 6,175