How To Execute A Shell Program in Linux



This Tutorial will Teach You How to code a Linux Shell Script and How to Execute A linux Shell Script from the Terminal

First, you will have to start the Terminal by pressing CTRL + ALT + T(For Ubuntu users)

Now Type "gedit filename.sh". Here gedit is the Command to start your Default file editor and Filename.sh is the name of the file that you r creating

In Linux .sh stands for SHELL. So all the Shell Programs  are to be saved with the extension ".sh". Like If you have a program to add 2 numbers u can crating it by typing "gedit addnum.sh"

Now When You type "gedit filename.sh" You will get the Default Text Editor Window Now type your Shell Programs And Click on Save Button

to Execute Your Shell Program just type "sh filename.sh" and it will display the output......Hope you like this.... 

Comments

Popular posts from this blog

Hack Wifi with Fern Wifi Cracker

Linux Shell Script to count no of occurrences of a digit in a number

How to Decompile JAR files and View Source Code of Java Programs