Unix & Shell Programming Jan 2014
Unix & Shell Programming Jan 2014
06cs36
Third Semester B.E. Degree Examination, Dec. 20l3lJan.2Ol4
UNIX and Shell Programming
Time: 3 hrs.
Max. Marks:100
Notez Answer FIVEfull questions, selecting
atleost TWO questions
from
eoch part. taaacuJt , 77 v al ucJaaarf ,J
J
t ltIII
yuL
ra put a.
PART
-
A
1 a. With a neat diagram, explain the relation ship between the Kernel and the shell of IINIX.
(07 Marks)
b.
What are internal and external commands in UNIX? Explain any three with examples in
each type. (07 Marks)
c. What is parent - child relationship? With the help of diagram explain the UNIX file system.
(06 IVlarks)
2 a. List and explain any four commands which are used for handling ordinary files. (07 Marks)
b. Explain each column of o,iltput Ls
-
I command. (07 Marks)
c'
what is editor? Explain the tluee modes of vi editor. (06 Marks)
3 a. Explain the following :
i) Shell wild cards ii) /dev/null and /dev /tty. (08 Marks)
b. Define the term process. Explain mechanism of process creation in [NIX. (06 Marks)
c. Explain any four L|NIX environrnental variables. (06 Marks)
o
.9
!
a
o
o
!
ox
NV
-l
ol)
cca
d$
noo
YO
otr
aO
a=
oc)
boc
,6
-c(B
-?o
or=
o.L
tr9.
o."
oj
a=
A,i,
!o
5.v
>,h
ibo
o=
so
tr>
:o
;L
lr<
:-
a_)
o
Z
o
4a.
b.
c.
c.
la.
b.
c.
8a.
b.
c.
List and explain the different ways of setting directory permissions.
Explain the following filters,with examples :
i) head ii) tail iii) cut iv) paste.
Explain hardlink and symbolic link, with examples.
PART
_
B
(07 Marks)
(07 Marks)
(06 Marks)
(07 Marks)
(07 Marks)
(06 Marks)
,
(07 Marks)
if the permissions of
(0T lVlarks)
(06 Marks)
(06 Marks)
(07 Marks)
(07 Marks)
(07 Marks)
(07 Marks)
(06 Marks)
a. Explain the grep, egrep and fgrep, with examples.
b. Explain Sed command with all options.
c. Describe the salient features of LINIX operating system.
Explain the special parameters used by the shell programming.
Write an shell script that accepts two file names as arguments, check
these files are common permission or different permission.
Explain the following : i) expr ii) shift iii) set iv) read.
What is awk? List and explain any three built
-
in functions in awk.
Write an awk program to print transpose of a given matrix.
Explain with examples, the simple awk filtering.
Explain briefly the features offered by PERL.
Explain chop(
)
and split(
)
with examples.
Write a PERL program to conveft an unsigned binary to decimal.
C6?ifqit!{*
Ll&i{$::$jt
.:::
For More Question Papers Visit - www.pediawikiblog.com
For More Question Papers Visit - www.pediawikiblog.com
w
w
w
.
p
e
d
i
a
w
i
k
i
b
l
o
g
.
c
o
m