Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Aug 242010
 

Make a file executable in Linux

Answer:

Assume you have create a shell script, my.sh, you need to make this file executable, you can use the chmod command.

# chmod +x my.sh

Then you can execute the script directly

# ./my.sh

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>