Sunday, March 4, 2012

HOW TO WORK SHELL SCRIPTS IN FEDORA SYSTEM



HOW TO WORK "SHELL" PROGRAM IN FEDORA:
STEP 1Open your Fedora Terminal window.
STEP 2: Then type this commands.
Syntax: $vi sample.sh then enter.
STEP 3open the vi editor window.
STEP 4: Pres the insert "i" button.
STEP 5: Then type your "SHELL SCRIPTS" Program.
           echo "Welcome to Fedora"
                cal
STEP 6:Then save and quit your shell script program.
syntax: press Escape key and  then type wq: then press enter key.

HOW TO RUN "SHELL" PROGRAM IN FEDORA:
STEP 1Type this command and run your "SHELL SCRIPT" program.
STEP 2: Change permission to your shell script program.
Syntax: $chmod +x sample.sh
STEP 3: Run your shell scripts program.
Syntax: $./sample.sh
output:  
         Welcome to Fedora
              March 2012     
     Su Mo Tu We Th Fr Sa
                             1  2  3
            4  5  6  7  8  9 10
    11 12 13 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30 31

6 comments: