UNIX Question Bank
UNIX Question Bank
ANS:-Layer-1: Hardware –
It consists of all hardware related information.
Layer-2: Kernel –
The kernel is the heart of the operating system. It interacts with the
hardware and
most of the tasks like memory management, task scheduling and file management.
Layer-3: Shell commands –
The shell is the utility that processes your requests. When you type in a
command at
your terminal, the shell interprets the command and calls the program that you
want.
The shell uses standard syntax for all commands. C Shell, Bourne Shell and
Korn Shell
are the most famous shells which are available with most of the Unix variants.
Layer-4: Application Layer –
It is the outermost layer that executes the given external applications.
Chapter 1-2-5
1.Explain if-else-if with syntax and example.
ex-
2.Explain while loop with syntax and example.
ex-Display numbers from 1 to 10.
number = 1
while [ $number –lt 11 ]
do
echo $number
((number++))
done