VTU Previous Year Question Papers BE CS UNIX and Shell Programming December 2010

VTU Previous Year Question Papers BE CS 6th Semester

UNIX and Shell Programming December 2010


Note: Answer any FIVE  full questions.

1 a. Discuss the salient features of the UNIX operating system.

b. What are system calls? Give two examples of system calls in UNIX OS.

C. Describe the relationship between the kernel, shell and the user, with the help of a diagram.


2 a. Explain the following commands:

i) be             ii) od            iii) comm iv) stty

b. Discuss the various approaches of setting file permissions in UNIX.

c. Differentiate between hard links and soft links to files, with examples.


3 a. With a suitable sketch, explain the modes of operation of the vi editor.

b. Explain the commands “search for pattern” and “search and replace” in vi editor.

c. What is command substitution in UNIX? Give one example.


4 a. What is the application of the following files?

Explain, i) | dev | null       ii) | dev | tty

b. Discuss the various commands for job control in UNIX, with examples.

c.  Explain how the shell process is created.


5 a. Discuss the following commands as related to communication in UNIX:

i) mesg                   ii) wall               iii) talk

b. List and explain the environment variables in UNIX.

c. Write a note on pr command.


6 a. Discuss sort command, with any five options.

b. Describe with examples, how test and [ ] are used to evaluate expressions in shell programming.

c. What is the significance of set command in shell programming? Explain.


7 a. State the built-in variables used in awk and explain each one of them.

b. Write a Perl program that prompts a user to input a string and a number and prints the string that many times, with each string on a separate line.

c. Discuss the string handling functions in Perl, with examples.


8 a. Write a note on ‘tar’ command and its options.

b. Mention the various privileges of the super user and explain them.

c. What is the significance of mounting and unmounting files in UNIX? Explain.

Leave a Comment