VTU Computer Science (Semester 4)
Unix and Shell Programming
June 2013
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) With a neat diagram, explain the architecture of UNIX operating system.
8 M
1 (b) With the help of a neat diagram, explain the parent-child relationship. Explain UNIX file system.
6 M
1 (c) Explain briefly absolute pathname and relative pathname with examples.
6 M

2 (a) Give the significance of the seven fields of the "ls -l" command.
7 M
2 (b) What is file permission? Explain how to use "Chmod" command to set the permissions in a relative manner with an example.
7 M
2 (c) Explain the three different modes in which "Vi" editor works.
6 M

3 (a) Explain the standard input, standard output and standard error with respects to UNIX operating system.
7 M
3 (b) Explain the mechanism of process creation.
7 M
3 (c) What are environment variables? Explain any four.
6 M

4 (a) Different between hard link and soft link in UNIX with examples.
6 M
4 (b) Explain "sort" command briefly. Also discuss its important options with examples (any five).
6 M
4 (c) Explain the following commands with example:
i) head ii) tr iii) uniq iv) find
8 M

5 (a) Explain 'grep' command with its options.
8 M
5 (b) Explain line addressing and context addressing in "sed" with examples.
6 M
5 (c) What are extended regular expression (ERE)? Explain any four ERE set used by "grep" and "egrep".
6 M

6 (a) Explain the use of "test" and [] to evaluate an expression in shell.
6 M
6 (b) Explain the shell features of 'while' and 'for' with syntax.
6 M
6 (c) Explain the "expr" command applicable to computation and string functions.
8 M

7 (a) What is AWK? Explain any three built in functions in AWK.
7 M
7 (b) Write short notes on operators and expressions in AWK.
6 M
7 (c) Explain built-in variables in AWK.
7 M

8 (a) List the string handling functions in PERL. Write a program to find number of characters. Word as well as to print reverse of a given string.
8 M
8 (b) Explain "chop()" and "split()" functions with examples.
6 M
8 (c) Explain file handling in PERL.
6 M



More question papers from Unix and Shell Programming
SPONSORED ADVERTISEMENTS