Micro Project OS - Merged
Micro Project OS - Merged
Course Name
Operating System (OSY 22516)
Submitted by
1. SAYED SHAD Roll no: 40
2. SAYED NIAHL Roll no: 44
3. SAYED MAAZ Roll no: 35
4. SAYED MANNAN Roll no: 36
5. SAYED SAFI Roll no: 37
Certificate
Seal of Institution
PART A
A MICRO PROJECT ON " Shell Script in Linux/Unix"
1.0 Brief Introduction
Shell Scripting is an open-source computer program run by the Unix/Linux shell.
Shell Scripting is a program to write a series of commands for the shell to run. It
can combine lengthy and repetitive sequences of commands into a single and
simple script that can be kept and run anytime which, decreases programming
efforts.
Plan Plan
Sr. Name of responsible
Detail of activity start finish
No. team members
date date
1 computer Windows 10 1
1
3 textbook/manual OSY Operating Systems 22516
PART B
Micro-Project Report
A MICRO PROJECT ON "Shell Script in Linux/Unix"
1.0 Brief Introduction
Shell Scripting is an open-source computer program run by the Unix/Linux shell.
Shell Scripting is a program to write a series of commands for the shell to run. It
can combine lengthy and repetitive sequences of commands into a single and
simple script that can be kept and run anytime which, decreases programming
efforts.
What is Shell ?
Shell is a UNIX term for an interface between a user and an operating system
service. Shell delivers users with an interface and receives human-readable
commands into the system and performs those commands which can run
automatically and give the program’s output in a shell script.
An Operating is created of many components, but its two prime components are
–
Kernel
Shell
A Kernel is at the heart of a computer. It completes the communication between
the hardware and software possible. While the Kernel is the innermost part of an
operating system, a shell is the outermost one.
Types of Shell
There are two main shells in Linux:
1. The Bourne Shell: The prompt for this shell is $ and its derivatives are listed
below:
2. The C shell: The prompt for this shell is %, and its subcategories are:
1. Create a file utilizing a vi editor (or any other editor). Name script file
with extension .bash
2. Start the script with #! /bin/bash
3. Write some code.
4. Save the script file as filename.sh
5. For running the script type bash filename.sh
“#!” is an operator named shebang which directs the script to the interpreter's
location. So, if we use”#! /bin/bash” the script gets directed to the Bourne-shell.
* #! /bin/bash la
* #comment
What are Shell Variables?
Variables store data in the form of characters and numbers. Likewise, Shell
variables are utilized to store information and they can be by the shell only.
For example, the following creates a shell variable and then prints it:
variable ="Hello"
echo $variable
echoecho $variable
$variable
read name
echo $variable
read remark
echo "I am $remark too!"
As you see, the program determined the value of the variable ‘name’ as Joy and
‘remark’ as excellent. This is a simple script. You can create advanced scripts
which contain conditional statements, loops, and functions. Shell scripting will
make your life easy and Linux administration a breeze.
Summary:
1 computer Windows 10 1
Conclusion
A shell script is a text file that includes a sequence of commands for a UNIX-
based operating system. It is called a shell script because it combines a sequence
of commands, That would otherwise have to be typed into the keyboard one at a
time, into a single script.