0% found this document useful (0 votes)
6 views

Introduction To Shell Scripting

Its about shell scripting

Uploaded by

chavanar23
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Introduction To Shell Scripting

Its about shell scripting

Uploaded by

chavanar23
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING

Presentation on:

“INTRODUCTION TO SHELL SCRIPTING”


Submitted By:
CHAVANA . R
[1JB21IS025]

Under the guidance of


Mr. GOVERDHAN VISHWANATH
Deputy Controller of Examination SJBIT

Academic Year : EVEN SEM (2022-23)


Semester : 4th ‘A’ SEC
Introduction
Shell
Types Of Shell
What Is Shell Scripting?
 CONTENTS: Need of Shell Scripting
Advantages Of Shell Scripting
Disadvantages Of Shell Scripting
Commands in Shell Scripting
Examples in Shell Scripting
 INTRODUCTION:

• OBJECTIVE: To know what is shell scriping.


• To understand shell scripting, we need to understand the following
terms:
1. KERNEL :- it is a computer program that is a core of a computer’s
OS with complete control over everything in the system.
2. SHELL :- is an environment in which we can run our commands,
programs, and shell scripts.
3. TERMINAL :- a way to pump characters into a device and read
characters and control characters from the same device
• SHELL IS BROADLY CLASSIFIED INTO TWO
CATEGORIES:-

1. Command Line Shell :-

The command-line shell, sometimes called the command


 SHELL: prompt or the terminal, is a tool that lets you control your
computer using only textual commands. It offers a lot of
power and simplicity. Bascically, it is a computer program that
presents a command line interface which allows you to control
your computer using commands entered with a keyboard
instead of controlling graphical user interfaces (GUIs) with a
mouse/keyboard/touchscreen combination.
2. Graphical Shell :-
Graphical shells provide
means for manipulating
programs based on the
graphical user interface (GUI),
by allowing for operations
such as opening, closing,
moving, and resizing windows,
as well as switching focus
between windows.
 TYPES OF SHELL:

• There are basically 3 main important types of shell. They are as follows:-

1. BASH – Bourne Again Shell:

It is a command language interpreter. Simply put, it is a text windows interprets


commands that you type. It was written by Brian Fox for the GNU Project as a
replacement for the Bourne shell (sh), one of the earliest UNIX shells.
2. CSH – C Shell:-

It is a Unix shell that provides a command-line user


interface (UI) to interact with an operating system (OS).
Created by Bill Joy at the University of California at
Berkeley in the late 1970s, C shell is one of the oldest Unix
shells used today.

3. KSH – Korn Shell:-

The Korn shell (also known as the POSIX shell) offers


many of the same features as the Bourne and C shells, such
as I/O redirection capabilities, variable substitution, and file
name substitution.
 WHAT IS SHELL SCRIPTING?

A shell script is a list of commands in a computer program that is run by the Unix shell
which is a command line interpreter.

A shell script usually has comments that describe the steps. The different operations
performed by shell scripts are program execution, file manipulation and text printing.

A wrapper is also a kind of shell script that creates the program environment, runs
the program etc.
 NEED OF SHELL SCRIPTING:

To avoid repetitive System admins use


System
work and shell scripting for
monitoring.
automation. routine backups.

Adding new For creating a


functionalities to program
the shell. environment.
Easy to use.

Portable.

Qiuck start.

 ADVANTAGES Interactive debugging.


OF SHELL
SCRIPTING: Same syntax as that of command line.

Avoids repetitive work and automation.

Shell scripting is much quicker than writing commands in the terminal.

Simple up learn.
 DISADVANTAGES OF SHELL SCRIPTING:

Slow execution speed.

Not suited for large and complex tasks.

Design flaws within the language syntax.

Provides minimal data structure, unlike other scripting languages.

Prone to costly errors.


cat - reads data from the file
ls - Lists the names of files in a
and gives its content as
particular Unix directory.
output.

 COMMANDS
rm - removes the entries for a mv - moves files and
IN SHELL specified file, group of files, or
certain select files from a list
directories from one directory
to another or renames a file or
SCRIPTING: within a directory. directory.

mkdir - to create one or more There are many other like


directories specified by the chmod, find, chown, chgrp,
Directory parameter. head, tail, grep, ln, cut, etc.
 EXAMPLES IN SHELL SCRIPTING:
THANK YOU

You might also like