Tuesday 16 July 2013

Script file in Linux - Batch file in Linux

To create a "batch" file in Linux (actually it's called a shell script)

- Use any editor like vi or mcedit to write the shell script, name it as you wish your-script-name

- Execute your script as: bash your-script-name

Example of script:
#
# My first shell script
#
clear
echo "Knowledge is Power"

No comments:

Post a Comment