01-03-2013, 09:31 AM
MSC(IT) III SEM Exam 2012-13 Unix and Shell Programming
MSC(IT) III SEM.docx (Size: 15.32 KB / Downloads: 17)
Q1. a) What is shell scripting? State the advantages of shell scripting.
b) In shell scripting, how to identify that the previous command was run successfully?
c) What are the different types of shells available in UNIX?
Q2. a) What are the different security mechanisms available in UNIX?
b) Write a shell script to identify the given string is palindrome or not?
c) What are the steps to take files from unix server to windows?
d) How would you replace the n character in a file with some xyz?
Q3.a) How to compress files by using shell scripting?
b) How do you search the string for vowel's occurrence and number of occurrences of each vowel
c) What is the difference between an environment variable and a local variable?
d) If you have a string “one two three”, which shell command would you use to extract the strings?
Q4. a) Give some situations where typing error can destroy a program?
b) How will you write a shell script to connect to SQL database?
c) Explain about debugging.
Q5. a) Explain the different kinds of loops available in shell script with suitable example.
b) What is the basic difference between a shell script and perl?
c) Difference between the fork() and vfork() system call?
d) What is ‘inode’?
Q6. a) How do you schedule a command to run at 4:00 every morning with the help of shell scripting?
b) Explain following commands with suitable example.
• Ls
• Chmod
• Cut
• Grep
• Write
• Rmdir
• Redirection
• More
• Cat
Q7. Explain following
• Vi editor
• File system mounting
• Administrator privileges
• Wild characters