Wednesday, 4 May 2011

Bashing Away

Shell Script example:

Create file: HelloWorld.sh
#! /bin/bash
# script decription

echo "Hello World"


Make file executable (for all)
$ chmod +x HelloWorld.sh

Read, Write, Execute (7) for user, Read, Execute (5) for group, Read, Execute (5) for other.
$ chmod 755 HelloWorld.sh

No comments: