Creating basic script in linux :
The shell script is a program which is written in shell programming language and executed by a shell process.It is useful for performing automatic task with the reference of your file.
I am going to create a script in the following procedure :
open a text editor (but not a word processor) like gedit or vi and type some shell contents which will print "Hello world ".
Code:
#!/bin/bash
clear
echo "Good morning, world."
Save this file with the .sh extension and execute it on the prompt with the path specified and change the permission setting otherwise cause some error.
Bookmarks