Sei sulla pagina 1di 2
es TTT TTT TTT (hird Semester B.E. Degree Examinatic Dec.08/Jan.09 UNIX & Shell Programming Fime: 3 hrs. Max. Marks:100, Note: Answer any FIVE full questions, selecting at least TWO questions from each part. PART—A LExplain the saliont features of UNIX operating system. (07 Mars) plain the concept of absolute pathname and relative pathname with suitable examples. (04 Marks) What is parent child relationship? Wit the help of neat diagram explain, UNIX file system tre. (os Marks) What is the output of the following commend, (o4ntaris) (i) echo SPATH (i) man man ii) emp ff [f)and fae identical] (iy ba ‘What is file permission?” What are the different ways of setting file permission? Fxplain (08 Maris) Explain the following with respect to vi editor, 06 Marks) i) Search for « pattem printf, then repeat the search in both forward and backward direction (ii): $s| direetor | member| g Git): wtempfile div) 5, Swtempfile () recover (wv) 20h Explain the different modes of operation in a vi editor with & suitable diagram. (06 Marks) Explain the concept of Escaping and quoting with suitable examples. (06 Marks) Frame wild card pattern for the following (06 Marks) (i) Retrieve hidden files (ii) Any aumber of characters followed by 4 characters (ii) Matches all filenames that do not begin with an alphabetic character. ‘What is @ process’? Explain how a process is created using the three primitives fork, exee and wait. (08 Maris) Discuss standard input, standard output and standard errors files, im UNIX. (06 Maris) Explain the following cnvironment variables with examples. (06 Maris) (SHELL qi) -PS2 (i) HOME, Explain the following commands with examples (0 Marks) Qt Gi) te Git) sort Gy) pr : ow | TTT. 7 Lysse gs: csss usn Li | E]) 4002 scueie ‘emester B.E. Degree Examination, Dee 08 / Jan 09 SS Unix and Shell Programming Time: 3 hrs. Max. Marks:100, Note : Answer any FIVE full questions. 1a, Describe briefly the UNIX architecture withthe belp af neat diagram (06 arts) bb. Differeniote between; i) Intemal and External command i) Argument apd Option {ie Mats) cc. Explain the following commands with examples. i) Usame iy serigt ii) tty iy) we (un Maris) 2a Givethe output ofthe following commands: #) cat fov foo foo i) Is-d i) chmod u=nwx, g+¥.0-w demo. (06 mans) b. What are the default permissions for all files and directories erated after issuing the command umask 012? Can the super user read and write the file which has 0 00 peruisioa! (os Mas) . Explain briefly te significance ofthe ouput of —f command (us Mans) 3 a Explain different modes of vi editor with a neat diagcam. (06 Marts) bb. Explain input and output redirection with an example to each (os stats ©. Explain find command with examples. Use find eommand to locate i Abin and usr/bin all filenames that i) begin withs ii) have the extension htm! and (08 Marks) 4a. Explain how a process is created (oe many &. Explain sort command with atleast four options (We Mans) c. What do the following commands do: i) grep patter foo | tail —n 1. (08 Marks) ii) ds—J “grep —wait*.c iii) w'fa—z] [A-Z]'

Potrebbero piacerti anche