
- Operating System Tutorial
- OS - Home
- OS - Overview
- OS - Components
- OS - Types
- OS - Services
- OS - Properties
- OS - Processes
- OS - Process Scheduling
- OS - Scheduling algorithms
- OS - Multi-threading
- OS - Memory Management
- OS - Virtual Memory
- OS - I/O Hardware
- OS - I/O Software
- OS - File System
- OS - Security
- OS - Linux
- OS - Exams Questions with Answers
- OS - Exams Questions with Answers
- Operating System Useful Resources
- OS - Quick Guide
- OS - Useful Resources
- OS - Discussion
Why do we need shell scripting?
Shell is a software program that acts as a mediator between the kernel and the user. It reads the commands and interrupts by sending requests to execute a program. So, the shell is known as a command interpreter.
It contains almost 100 system calls. It tells the kernel to carry out various tasks for the program. These tasks are as follows −
Opening a file.
Writing a file.
Obtaining information about a file.
Executing programs.
Terminating a process.
Changing the priority of processes.
Getting the time and date.
Need of shell scripting
Let us see the reasons for using shell scripts which are given below −
Shell helps in doing work which is repetitive in nature. For example: When executing a bunch of commands, often, shells can take all these commands directly from a stored file and execute it, instead of writing them again every time.
They are used to get routine backups by admins.
They are easier to write and debug than other programming languages like C or C++.
We can transfer the shell script to other UNIX and similar operating systems and execute.
Shell scripts are also used to monitor systems regularly.
Now let us see different shells used in different operating systems, which are as follows −
The shells used on Linux operating system are as follows −
The Korn Shell,
Bourne-Again Shell,
Tcsh
The shells used on UNIX operating system are as follows −
The Korn Shell
The C Shell
Bourne-Again Shell
The shells used on Windows operating system are as follows −
Aston Shell
Window Blinds
Xoblite
- Related Articles
- Why do we need KDD?
- Why do we need Energy?
- Why do we need Good Manners?
- Why do we need a Database
- Why do we need Computer Networks?
- Why do we need Data Encryption?
- Why do we need generics in Java?
- Why do we need weakMaps in Javascript?
- Why do we need to study Physics?
- Why do we need to store food?
- Basic Operators in Shell Scripting
- Why do we need inner classes in Java?
- Why do we need a separate Data Warehouse?
- Why do we need food, we can also survive with water?
- Why do we need a wrapper class in Java?
