UTTARAKHAND TECHNICAL UNIVERSITY
B.TECH (SEM. IV)
2012
SUB: UNIX & SHELL PROGRAMMING
time : 3hr]
Total marks :100
Note: Attempt all questions. Be precise in your answer.
SECTION A
Q1:- Attempt any four of the following :
4x5=20
- Describe how UNIX is more secured than other operating systems.
- How many types of editors we can use in UNIX operating system. What are the main functions of vi editors.
- Explain the purpose of include files in UNIX.
- Explain the role of file descriptors, file table and Incode table in Unix File System.
- Draw the block diagram of Unix system kernel. Explain various components.
SECTION B
4x5=20
- Write a short note on internal and external commands of UNIX.
- What does kill $! Do? Explain with an example.
- Explain the task of following commands.
(a) tty
(b) gzip
(c) cat
(d) banner
(e) cmp - You are ediac in vi, and want to make a temporary exit to the shell. How will you do that and then come back to vi again?
- Your printer ha stopped working, and you want to be sure whether the printing daemon is working. How will you ensure that?
SECTION C
Q3:- Attempt any four of the following :
4x5=20
- Determine what the built-in shell variables are for your account. Which ones are exported?
- Explain:
(a) Shell metacharacters
(b) Shell variables - Write a shell script that prints the current date, your user name and the name of your login shell.
- Write a shell script that creates three background processors, waits for them display a simple message.
- Explain the various types of UNIX shell and their characteristics.
SECTION D
Q5:- Attempt any two of the following :
10×2=20
- (a) List the sequence of events that occur when one turn on the computer.(b) What is the various security features offered in UNIX? Explain any two in detail.
- (a) What is the difference between shutdown and halt.(b) Explain mounting of a file system in UNIX. When is unmounting a file system not possible?
- Expain the utility provided by the UNIX for managing and tracking to files. Suppose we want to check a C program for a syntax and data type errors. Which UNIX utility can be used to display message that point out, possible problems? Explain the procedures to use this utility.
SECTION E
Q5:- Attempt any two of the following :
10x2=20
- Write short note on language development tools YACC, LEX, M4 in UNIX.
- Describe the following tools troff, nroff, tbi, Dbx, and Adb
- Describe Library functions and system calls with an example.
------------------------------------
GOOD LUCK!!!!
No comments:
Post a Comment