Roll No, Total Pages: 3
NBCA/D-24 3606
LINUX & SHELL PROGRAMMING
Paper- CC-B3: B23-CAP-302, B23-CTS-302
Time allowed : 3 Hours] [Maximum Marks :50
Note : Attempt five questions in all, selecting one question
from each unit. Question No. 1 is compulsory. All
questions carry equal marks.
Compulsory Question
1. 5x2=10
Attempt allquestions:
(i) Write the following relational expression in Korn
,shell
(a) c>=d (b) c<d.
(ii) Explain 'echo' command in Linux operating
system.
(iii) What is a constant in shell programming?
Write ways for declaring constant in shell
programming.
(iv) Name any four salient features of Linux operating
system.
(v) Why vi is a visual editor in Linux operating
system?
3606/K/84/3900 P.T.0.
UNIT-I
2. (a) Give a brief account of hardware requirements for
installing Linux. 5
(b) Give a brief view of shells in Linux operating
system. 5
3. Explain the following Linux characteristics:
(a) Communications
(b) Multitasking in Linux.
UNIT-I
4. Write syntax and purpose of following commands: 5×2=10
(a) st (b) rd
(c) ps (d) w
(e) set.
5. (a) Write different types of users in Linux and their
role. 5
(b) Write any four çommunication oriented commands
of Linux. 5
UNIT-III
6. (a) Write different states of a process in Linu. 5
(b) Define inode and its structure in Linux.
7. Explain following Job Control Commands: 5×2=10
(a) fg (b) jobs
(c) suspend (d) df
(e) more.
3606/K/84/3900 2
UNIT-IV
8. (a) Explain any four environment variables used in
BASH shell.
(b) How can we run shell script? Give example.
9, Write shell script for following:
(a) Calculate factorial of an integer number.
(b) Display table of a given numb
3606/K/84/3900 3