Overview of Shell Scripting
Overview of Shell Scripting
Introduction:
A shell script is a listing of commands in a computer program that is run by the Unix shell which is a command-line interpreter. It has comments that illustrate the steps. The various operations performed by shell scripts are program execution, file manipulation, and text printing.
Overview:
Types of Shell:
Uses of Shell scripting:
Q
What is a shell in an operating system?
A
The shell is the outermost layer of the operating system. Shells incorporate a programming language to control processes and files, as well as to start and control other programs.
Q
What are the different types of shells?
A
Description of different types of shell
Bourne shell (sh)
C shell (csh)
TC shell (tcsh)
Korn shell (ksh)
Bourne Again SHell (bash)
Bourne shell (sh)
C shell (csh)
TC shell (tcsh)
Korn shell (ksh)
Bourne Again SHell (bash)
Q
Where is shell scripting used?
A
Shell scripts are commonly used for many system administration tasks, such as performing disk backups, evaluating system logs, and so on. They are also commonly used as installation scripts for complex programs.
Q
Why shell scripting is used?
A
A shell script is a program that is used to perform specific tasks. Shell scripts are mostly used to avoid repetitive work. You can write a script to automate a set of instructions to be executed one after the other, instead of typing in the commands one after the other n number of times.
Q
What is ShellScripting?
A
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.