I'm new to Unix so just wanted some help.
I've been self learning and came accross a question online that I was trying. It is to make any shell script executable, the name of the file is to be made executable.
To make scripts executable, you need to set its directory entry's "executable permissions" for the intended users/persons, "owner", "group", or "others". Enter chmod (all lower case) into the shell for this. Consider well which target users should receive that permission; in above sample you give it to all three groups. nano is one among other editors used to modify scripts. It has nothing to do with the execution of a script.
The so called "shebang" within the script text is not mandatory but helps the shell decide which program to use to run the script.
To edit a file called filename, type nano filename.
Insert new text(which is I guess
#!bin/ksh
chmod +x Input_file
) at the current cursor position just by typing the text in.
^O save contents without exiting (you will be prompted for a file to save to) ^X exit nano (you will be prompted to save your file if you haven't) ^T when saving a file, opens a browser that allows you to select a file name from a list of files and directories.
You do not make the script you write executable by typing chmod +x filename in it.
Instead, you should write it in the terminal, so the file gets the permission.