Escolar Documentos
Profissional Documentos
Cultura Documentos
8TH SEMESTER
COMPUTER SCIENCE ENGINEERING
UNIX AND SHELL PROGRAMMING QUESTION BANK
UNIT I
4) ls R
3) grep
4) ln
Q.4. Mention the different modes of Vi editor and explain how you can move from
one mode to the other mode. Also discuss what can be done in each of these
modes.
Q.5. Explain the following commands :
1) grep
2) touch
3) wall
6) echo
7) ls
4) cp
5) pwd
Q.6. Explain structure of UNIX O/S. Also write different features of UNIX O/S.
Q.7. Describe the salient features of UNIX operating system.
Q.8. Explain in detail about address, data and control bus.
Q.9. Explain the following commands :
1) chmod
2) diff
3) more
4) tr
Q.10. With reference to the vi editor explain how the following operations are
achieved :
1) Yanking
2) Searching and replacing a pattern
3) Joining lines of text
4) Navigation in four directions (without using arrow keys)
5) Running a unix command inside the vi editor.
Q.11. Explain about the history of Unix operating system.
Q.12. Consider the following file emp.list which stores information of employee.
Emp No
2004
2006
1001
4008
2000
1020
Name
Gupta
Agrawal
Krishna
Saxena
Singh
Sen
Position
GM
Director
Manager
Accountant
Director
Executive
Dept
Sales
Marketing
Marketing
Sales
Production
Personnel
DOB
12/12/52
26/09/45
15/02/77
18/04/82
02/12/46
10/08/80
Salary
12000
18000
8000
6000
20000
6000
Q.4. How a new inode number is allocated to a file. Explain iget and iput algorithm.
Q.5. How pipes are different from regular file? Explain read write process in pipes.
Q.6. Explain namei algorithm in detail.
Q.7. Write an algorithm for conversion of a path name to an inode.
Q.8. Explain mount system call.
Q.9. Explain open system call.
Q.10. Calculate the block number and byte offset on that block number if a process
wants to access 9000th byte of a file. One disk block is of 1024 bytes.
Q.11. What is inode? Draw and explain a sample inode.
Q.12. Explain link system call.
UNIT V
2) Sleeping process.
2) Ubuntu Linux.