0% found this document useful (0 votes)
96 views

B.Tech Degree Examination Sixth Semester: CS010 606 L04: UNIX Shell Programming Model Question Paper

This document contains a sample question paper for a 6th semester B.Tech degree examination in UNIX Shell Programming. It has three parts with multiple choice and long answer questions. Part A contains 5 short answer questions worth 3 marks each on topics like UNIX architecture, commands like grep, loops, and ping/nslookup utilities. Part B has 5 slightly longer answer questions worth 5 marks each on topics like UNIX structure, cal command, editors vs word processors, shell startup files, and sed command. Part C covers the most in-depth topics with 5 long answer questions worth 12 marks each, including shell scripting, loops, piping, filters, sort command applications, modifying dates in shell scripts, regular expressions, and vi commands.

Uploaded by

Nikhil Prakash
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views

B.Tech Degree Examination Sixth Semester: CS010 606 L04: UNIX Shell Programming Model Question Paper

This document contains a sample question paper for a 6th semester B.Tech degree examination in UNIX Shell Programming. It has three parts with multiple choice and long answer questions. Part A contains 5 short answer questions worth 3 marks each on topics like UNIX architecture, commands like grep, loops, and ping/nslookup utilities. Part B has 5 slightly longer answer questions worth 5 marks each on topics like UNIX structure, cal command, editors vs word processors, shell startup files, and sed command. Part C covers the most in-depth topics with 5 long answer questions worth 12 marks each, including shell scripting, loops, piping, filters, sort command applications, modifying dates in shell scripts, regular expressions, and vi commands.

Uploaded by

Nikhil Prakash
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

B.

Tech Degree Examination Sixth Semester


CS010 606 L04 : UNIX Shell Programming Model Question Paper
Duration: 3 Hrs Max. Marks: 100

PART-A (Answer All Questions) (5x3=15 marks) 1. Draw the architecture of UNIX Operating System 2. Write UNIX commands to perform the following operations. Copy the content of one text le to the end of another text le. To list the les in a directory date wise 3. Show the usage of grep command with an example. 4. Show the looping feature of bash shell with an example. 5. Write the usage of ping ns lookup commands

PART-B (Answer All Questions) (5x5=25 marks) 1. Draw the schematic diagram of UNIX structure and briey explain its features. 2. How many options are available for cal command. How they works. 3. Dene an editor and explain the differences between editor and a word processor. 4. What are the startup and shutdown les for each shell 5. Show the result of the sed command. sed a/bc,*/ % /* on the following le aaabbbcccddd aaaabcaaaa aaaaabc aabbaaa 1

PART-C (Answer All Questions) (5x12=60 marks) 1. Write each of the following logic expression in korn shell. (x==5) && (y>10) (x<=y) || (y>10) (x!=y)||(x>7) &&(y<=x) OR 2. Show the way to repeat a command 100 times using until for while loop for-in loop 3. Explain the concept of piping and pipe operator with respect to C shell. Write examples. OR 4. Dene a lter. List lter utilities of UNIX. 5. Dene sort command. What is its general applications. Can the input from sort command come from a le? If yes then show the same with examples. OR 6. Write a bash shell script which displays system date and time. Change the date through the shell program as Jan 1,2013. 7. Dene a regular expression. Compare regular expression with math expression. Name the components of regular expression. OR 8. Write vi commands for deleting a word,line. replacing a character. copy and paste 10 lines. cut and paste 10 lines. 9. What is a process? How to create and destroy processes in UNIX. Show examples. OR 10. How the processes can be viewed and managed through shell. Show with examples.

You might also like