written 5.6 years ago by |
Unix And Shell Programming - Dec 16
Computer Science (Semester 3)
Total marks: 80
Total time: 3 hours
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
Module-1
1(a) Discuss the salient features of UNIX Operating system.
(06 marks)
1(b) Explain the following commands with examples:
(04 marks)
i) echo ii) Cs iii) who iv) date
1(c) Write a note on man documentation and explain the keyword option and what is option?
(06 marks)
OR
2(a) Explain how to display and set the terminal characteristics of a UNIX OS.
(06 marks)
2(b) Explain the contents of /etc/passwd and /etc/shadow file with respect to UNIX OS. (06 marks)
2(c) Explain the commands to add and delete a user.
(04 marks)
Module-2
3(a) Explain the different file types available in UNIX.
(06 marks)
3(b) With the help of a neat diagram, explain the parent child relationship with respect to UNIX file system. (05 marks)
3(c) Explain the following commands with example :
i) HOME ii) cd iii) pwd iv) mkdir v) rmdir
(04 marks)
OR
4(a) Explain the following commands with examples :
i) cat ii) mv iii) rm iv) cp v) wc
(05 marks)
4(b) Explain the seven field output of Cs-C command. (05 marks)
4(c) What are the different ways of setting file permissions?
(06 marks)
Module-3
5(a) Explain the different modes of vi editor.
(04 marks)
5(b) Explain how the text is entered and replaced in input mode of vi editor. (06 marks)
5(c) Discuss the navigation commands in vi editor with examples
(06 marks)
OR
6(a) Explain Shell's interpretive life cycle.
(04 marks)
6(b) Discuss the three standard files supported by UNIX. Also give details about the special files used for output redirection in UNIX. (06 marks)
6(c) With the help of example, explain grep command and list its options with their significance. (06 marks)
Module-4
7(a) Explain the shell features of "while" and "for" with syntax.
(08 marks)
7(b) Explain with example set and shift commands in UNIX to manipulate positional parameters.
(08 marks)
OR
8(a) Differentiate between hard link and soft link.
(04 marks)
8(b) Explain the following with example:
i) head ii) tail iii) cut iv) paste.
(08 marks)
8(c) Discuss briefly sort command with its options. (04 marks)
Module-5
9(a) Explain mechanism of process creation.
(04 marks)
9(b) Explain the following command:
i) at ii) cron iii) nice iv) nohup.
(08 marks)
9(c) Explain find command with its options.
(04 marks)
OR
10(a) Explain the following string handling functions of PERL with examples:
i) length ii) index iii) substr iv) reverse.
(08 marks)
10(b) With suitable examples, explain split and join functions in Perl. (04 marks)
10(c) Explain file handling in Perl. (04 marks)