Professional Documents
Culture Documents
Mehakpreet Kaur
A00127469
Introduction to shell
◦ Mouse is the main input device to regulate ◦ User have to type for every actions even from
most of the operations. small to small action like moving from one
◦ Shell in this interface understand the language place to another.
of visual representation. ◦ To interact with shell in CLI interface we have
◦ Example :- windows to type script for it which is explained further.
SHELL SCRIPTING
◦ Whatever we write in command line operator under some guidelines to run in the Linux that
are known as shell scripting.
◦ In other words, shell script is the list of commands which listed in order for execution with
commands.
◦ We made shell script to avoid repetitive works.
◦ Mainly these shell scripts are used to regular system backups, to monitor the system.
Shebang operator ( #! /bin /sh )
◦ It is essential to type # ! /bin /sh in the first line to start the script.
How to write shell script
◦ Shell scripts are written in text editors. (vi editor)
◦ First of all, we open shell scripts with its name, vi [filename].sh
◦ Assigning permission for execution of shell script, chmod u+x [filename].sh or chmod 700
[filename].sh
How to write shell script
◦ At the we will run our program through bash [filename].sh