Thread: Utility Linux Admining
View Single Post
  #7  
Old September 2nd, 2006, 05:08 PM

Arker Arker is offline
Corporal
 
Join Date: Jun 2006
Posts: 62
Thanks: 0
Thanked 1 Time in 1 Post
Arker is on a distinguished road
Default Re: Linux Admining

Quote:
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
Reply With Quote
The Following User Says Thank You to Arker For This Useful Post: