Linux Tips and Tricks

Linux Tips and Tricks

Exceute shell script without assign execute permission

March11

Create a simple shell script as follows.

echo “Hello World”

save the file as hello_world

And now you can see the file permission using the ls -l command.

$ ls -l hello_world
-rw-r–r– 1 kamaraj kamaraj 19 2011-03-11 20:40 hello_world

Now type sh hello_world in the terminal.

$ sh hello_world
hello world

posted under Uncategorized

Email will not be published

Website example

Your Comment:


Recent Comments

    Categories