0% found this document useful (0 votes)
52 views3 pages

CS, DSE-2, 2022 5th

This document provides instructions for a 3-hour exam on UNIX shell programming. It consists of 4 parts worth a total of 60 marks. Part 1 (8 marks) contains 8 short answer questions testing basic UNIX commands and concepts. Part 2 (12 marks) requires explaining 8 concepts in 2-3 sentences each. Part 3 (16 marks) involves discussing 8 topics in around 75 words each, differentiating concepts and explaining command usage. Part 4 (24 marks) contains 2 longer answer questions, with one requiring a description of UNIX features and commands and the other explaining process creation phases or user types and permissions. The exam tests both conceptual knowledge and practical skills in UNIX shell programming.

Uploaded by

vaxepo6367
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views3 pages

CS, DSE-2, 2022 5th

This document provides instructions for a 3-hour exam on UNIX shell programming. It consists of 4 parts worth a total of 60 marks. Part 1 (8 marks) contains 8 short answer questions testing basic UNIX commands and concepts. Part 2 (12 marks) requires explaining 8 concepts in 2-3 sentences each. Part 3 (16 marks) involves discussing 8 topics in around 75 words each, differentiating concepts and explaining command usage. Part 4 (24 marks) contains 2 longer answer questions, with one requiring a description of UNIX features and commands and the other explaining process creation phases or user types and permissions. The exam tests both conceptual knowledge and practical skills in UNIX shell programming.

Uploaded by

vaxepo6367
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CSC DSE -

2 -
S -V (R&B)

2022
UNIX SHELL PROGRAMMING
Time- 3 hours
Full Mark - 60
Answer all parts as per instructions.
Parts of each question should be answered continuOusly.
Marks allotted to each question is indicated
on the right hand margin.

PART-
1. Answer all questions. [1x8 8]
a. The central component of an operating system that managees

operations of computer and hardware is called


b. symbol is used with grep command to match the

pattern "pat at the beginning of a line.


C command is used to display the documentation of
Commands in UNIX.

d. command is used to sort the lines of data in a file in

reverse order.

e. command is used to display the directory attributes

rather than its contents.

f. command is used to delete all files in a directory in

UNIX
g. To extract specific column from a file, command is
used in UNIX.

h. command is used for printing the current working


directory.
PART-I

of the following within two to three sentences


2. Answer any eight
each. [12x8=12]
a . Define is Booting.
b . Define kernel in UNIX.
C. Define the responsibilities of a super user.

d. Write the mechanism for login a process in UNIX.

e. Write the names of different file permissions.

A. What is stream editor?

9. What is meta character?


. Write the use of pwd command in UNIX.
i. Write the usage of tr command in UNIX.
j. VVrite the commands used for cut and paste in UNIX.

PART-IIl
3. Answer any eight of the following within 75 words each.
[2x8 = 16]

a . Differentiate between UNIX.and Windows Operating system.


b. Defining booting.
C. Write the usage of.fork( ).
d. Differentiate between hard link and symbolic link in UNIX.
e . Write the utility of echo command in UNIX.
t Define shell in UNIX. Write the names of different shells of UNIX.
mechanism in vi editor.
g . Write the files saving
h. Write the two methods of defining shell variables.
i. What is control structure? Write the n a m e s of different loops used
in UNIXK.
j.Write the method for changing the permissions of a file in UNIX.
PART-1V
Answer all questions within 500 words each

4.
4. a.
a. Write the salient features of UNIX_operating systemn.
Distinguish between UNIX Internal and External commands
using suitable example. [2+4]
OR
b. Briefly explain the phases of process creation in UNIX.
r6]

5. a. Briefly explain the features of different types of u s e r s . Explain


could be
the how a u s e r c a n be created and the rights

granted for new users. [2+4]


OR
b. Briefly explain the file management system in UNIX. [6]
to create to
6. a. What is shell programming? Write a shell script
current users,
create a m e n u which displays the list of files,
status of thhe
and contents of a particular, file and process
systenm based o n the u s e r choice. [1+5]
OR
b. Write the utility of filters and pipes in
Shell programming. With
suitable example write the usage of the following filters:
[2+4]
i) WC
ii) who
iii) Is
iv) uniq

VWrite shell script to find the result of the following series:


7. a. a

11+21+3!+......+n! [6
OR
b. Explain the following built-in functions with example. [6]
i) split()
ii) substr()
iii) length()
iv) index()

You might also like