UNIX & Shell Programming June 2010
UNIX & Shell Programming June 2010
com
06CS36
Third Semester B .. E. Degree Examination, May/June 2010 UNIX and Shell Programming
Time: 3 hrs.
Max. Marks: 100 Note: Answer any FIVE full questions, selecting at least TWO questions from each part.
PART-A
a. Explain salient features of UNIX operating system. b. Explain the different types of files supported in UNIX. c. Explain the following commands, with example : mailx, passwd, stty, who a. Briefly describe the different ways of setting file permissions. b. What are the three modes of vi editor? Explain. c. What is a navigation? What are commands used for navigation in vi editor? a.
(08 Marks)
(06 Marks) (06 Marks) (08 Marks)
What are environmental variables? State their significance. (06 Marks) b. What are three standard files used by UNIX commands? Explain. (06 Marks) c. What is shell process? What are three different phases in the creation of process? (08 Marks) a. What are hard links and symbolic links? b. Explain with an example, find command and its operators. c. Explain the following filters, with examples : head, tail, cut, tr. PART-B
(06 Marks) (06 Marks)
(08 Marks)
a. How to search for a pattern using grep? What are the options used by grep? b. Explain extended regular expression (ERE) set used by grep. c. What are internal commands used by sed?
a. What are the special parameters used by the shell? (06 Marks) b. Explain how numeric and string comparison is done by using test. (06 Marks) c. Write a menu driven shell script to display list of files, process of user, todays date and users of the systern. (03 Ma:rks) a. Explain any three built in variables used in awk. b. Give the syntax of three control flow statements used by a wk. c. Explain built in functions used in awk.
(06 Marks) (06 Marks) (08 Marks) (06 Marks) (06 Marks) {08 Marks)
a . Explain string handling function in Perl. b. Explain split and join functions. c. Write a Perl script to convert a decimal number to binary.
*****
For More Question Papers Visit - http://pediawikiblog.blogspot.com