VTU Computer Science (Semester 3)
Unix and Shell Programming
December 2015
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) Explain the Architecture of UNIX operating system with a neat diagram.
8 M
1 (b) Describe the salient features of UNIX operating system.
8 M
1 (c) Write a note on man command.
4 M

2 (a) Explain the different types of files supported in UNIX.
6 M
2 (b) Which command is used for listing file attributes? Explain significance of each field in the output.
8 M
2 (c) Explain with a neat diagram the three modes of Vi-editor.
6 M

3 (a) What are standard input, standard output and standard error? Explain in detail with example.
6 M
3 (b) Define the term process. Explain the mechanism of process creation in UNIX.
6 M
3 (c) Explain the following command with an example.
i)Running jobs in background (& and nohup)
ii) Execute later (at and batch).
8 M

4 (a) Write a note on sort and find command.
8 M
4 (b) Differentiate between Hard link and Soft link in UNIX with example.
6 M
4 (c) Explain the following commands with example
(i) Head (ii) tail (iii) Pr
6 M

5 (a) What is the difference between a wild card and regular expression? Explain 'grep' command using n, l and f option with example.
6 M
5 (b) What are Extended Regular Expressions? Explain any four ERE set used by grep and egrep.
6 M
5 (c) Explain line addressing and context addressing in sed with example.
8 M

6 (a) What is shell programming? Write a shell program to create a menu which displays,
(i) List of files (ii) Current date (iii) Process status (iv) Current user of the system and (v) Quit to UNIX
8 M
6 (b) Explain shell features of 'while' and 'for' with syntax.
6 M
6 (c) Explain the use of test and [] to evaluate an expression in shell.
6 M

7 (a) What is AWK? Explain any three built-in function in AWK.
6 M
7 (b) Write an AWK sequence to find HRA, DA and Netpay of an employee, where DA is 50% of basic, HRA is 12% of basic and the Netpay is the sum of HRA, DA and Basic pay.
8 M
7 (c) Briefly describe built in variable in AWK.
6 M

8 (a) Explain with example the string handling function supported by perl.
8 M
8 (b) Explain Lists, Arrays and Associative Arrays with respect to perl.
6 M
8 (c) Write a perl script to convert decimal number to binary number.
6 M



More question papers from Unix and Shell Programming
SPONSORED ADVERTISEMENTS