Gandalf Parker said:
Any commands you can type in to run can be put into a text file. If you make it executable (chmod +x file) then it becomes a script.
It also helps to put the magic numbers in.
#!/bin/sh
should be the very first thing in the file.
And to make sure the permissions are right
chmod 755 file
The Following User Says Thank You to Arker For This Useful Post: