JNTU B Tech II Semester Unix Programming Exam Paper May 2008

JNTU B Tech II Semester Unix Programming Exam Paper May 2008

JNTU B.Tech II Semester – Unix Programming, Exam  Apr/May 2008

(Computer Science and Engineering)

Time: 3 hours Max Marks: 80

Answer any FIVE Questions

All Questions carry equal marks

SET-II

1. What is an operating system? Explain how UNIX fulfills more than that role. Discuss suitable examples. [16]

 

2. Discuss the various backup utilities available in UNIX. Ilustrate with suitable examples. [16]

 

3. (a) Write a shell script to accept a string from the terminal and use ‘case’ to echo a suitable message if the string does not have at least 10 characters using:

i. case

ii. expr

(b) Write a shell script to display the processes in the system five times every 30

seconds using:

i. while loop

ii. for loop. [8+8]

 

4. (a) Write a shell script which gets executed the moment the user logs in. It should display the message “good morning/good afternoon/good evening” depending upon the time at which the user logs in.

(b) Explain about here documents with an example. [8+8]

 

5. (a) Write and explain about hard and symbolic links.. give an example for each.

(b) Explain about file descriptors & i-node? [8+8]

 

6. Write a program which used both kill and raise functions. [16]

 

7. Write the differences between fcntl function and flock function. [16]

 

8. Explain the logic for opening or creating an IPC channel [16]

Leave a Comment