You are on page 1of 2

9.

(a) in
Discuss the control structures used shell
programming using suitable example. I Roll No. .........- fotel Pages : 04

(b) Write a menu driven shell program to perfonn the MCA(I5-16!/M-17


10098
following tasks : 8 LTNUX AND SHELL PROGRAMMING
(D Enter the sentence in file
cs-DE-3s(iii)
(ii) Search a given whole word in an existing file
(iiD Quit. Time : 'lfuee Hours] [Maximum Marks : 80

Note : Aitempt Five questions in all. Q. No. 1 is compulsorl''


In addition, attcnlpt exactly onc qtiestion from each
Unit.

(Compulsory Quection)

l. (a) Horv are hard links and syrnbolic links diflerent ?


Which commend is used o know about the number
of links that arc associated with a file ? tlow are
links crcated 'l 4
(b) Explain some regulat cxpressions ivhich arcr used
by egrcp, but not by greP or sed. 4
(c) Discuss the mechanism of pmcess creation. .t
(d) What are shell mela-clraracters 'l Discuss. 4

Llnit I

2. (a) Discuss the featurx of Uprx opcrating system and

differcntiate l0
(b) Discuss the explain
various types of in Linux. 5

L-1009E 4 15,0 ('.s7lr 3xr-1009t P.T.O.


3. (a) Lxplain the fc llowing commands with their format and s. (a) What are the srurdard fill systems iu Unix ? Discuss

options in Lir ux with the help of examples : l0 various gpes rrf them. 8

(i) expr (b) What are various oategories of files in Unixlt inux ?
(iD date What can be rhe length of a Unix file name and
(iii) wall what characters can't be used in a filename ? 8

(iv) nohup
(v) kill Ijnit ltl
(r'i) expand
How can the proccsses he controlled using at, batch
(vii) touch. 9. (a)
cron and time ? How can the priorities of proccsses
o) How can the file permissions for an existing file be
be chariged ? 10
changed usirg chmod command ? Discuss the.use
(b) Give a brief riescription of ferv important signals'
of chmod c, rmmand both in symbolic and octal
How are theY handled t 6
notations rui rg exaynples. 5

7. How are system calis different fiom system programs ?


Unit Il Explain various proccss-related system calls using suitahie
6
examPles. |
4. (a) Whaf are filt :rs ? Discuss any eight filters in Linux
nlong with t le syntax, opiions and examples. I Unit trV
(b) What is inor e ? What are difierent attributes of a
? 3 8. How can the systern adrninistrator perlbrm the lollowir'g
file that inor e contains
in Unix/Linux ? Ex;'lain using suitablc commands' thcir
(c) Explain, hou to perform the following editing w'r't'
syntax and examPles : 16
sed: 5
(a) Adding, moditying arrd deleting users and groups
(i) insert rfore line (b) Creating disk partitions and shutting down lhe
(ii) append after line
system.
(iii) delete tines.
"\ P.T.O,
'l (3-s7lr4L10098

You might also like