How To Exam?

a knowledge trading engine...


DOEACC Society 2007 DOEACC A Level A8-R3 Basic of OS, Unix

Thursday, 13 June 2013 08:15Web
M. file system N. u O. system call P. 2
Q. mount R. load S. du
4.1 File descriptor _________ is normally attached to terminal input screen to serve and
handle fault messages and diagnostic info.
4.2 _________ is also a kind of file in UNIX.
4.3 To cancel the action of previous command under vi, we press _________ under
command mode.
4.4 X window uses a(n) _________ display.
4.5 The shell parameter _________ contains the name of script is being executed.
4.6 _________ is part of programming of the kernel.
4.7 _________ representation of file is provided by inode.
4.8 Directory structure of the file system is accessible by root iniode after execution of
_________ system call.
4.9 _________ is used to know amount of disk space used.
4.10 Setting _________ for the file by super user may give privileges of owner of the file
during execution of the program.
A8-R3 Page four of six January, 2007
PART TWO
(Answer any 4 questions)
5.
a) discuss and draw the block diagram of the UNIX kernel showing different modules and
their relationship to every other.
b) How files are internally organized in UNIX system, explaining the use of different data
structure by kernel?
(8+7)
6.
a) Write a shell script to do the following:
A file name is given, which consists of the records having Mr. or Ms. in 1st field,
followed by number of 1st names, like
Mr. Shyam Ram Abdull Adit Shekh
Ms. Rita Veema Berry Nazima Sheela Geeta
Ms --- ---- --- ----- ----- ----- ----- -----
Mr. ------ -------
(The field separator is 1 or more blanks.)
Prefix the 1st field with every remaining field of the identical record and output as 1 line
after prefixing the 1st field and put it in file oname. Sort this file on name and output it
as ooname.
oname will be containing the records like
Mr. Shyam
Mr. Ram
…..
…..
Ms. Rita
Ms. Veema
-----
…..
Ms. Geeta
b) Attempt any 3 of the following:
i) Write an interactive shell script which should obtain the frequency of the word, to be
inputted from keyboard, in the text file word and display “the frequency of word”.
ii) Write a shell script which should display the users (along with all info
which appears as output of who command), who have logged in and logged out
in last 5 minutes.
iii) Write a shell script which should list all those users (output in form of who) who
have logged in ranging from 10:00 AM and 11:29 AM.
iv) Print the name of the current directory in which you are logged in. (NOT the
absolute pathname)
(6+[3x3])
A8-R3 Page five of six January, 2007
7.
a) Write an awk script (or otherwise) to do the following:
provided a file named weekt, which has the records having the subsequent fields separated
by 1 blank:
Day of week, name of vegetable, rate.
obtain the avg. rate of every vegetable. For calculating the average, the highest rate of
the vegetable in the day is to be considered, that means for identical day there may be
more than 1 record for the vegetable. List only those vegetables which have been sold
on every day of the week in the subsequent format:
Serial No. Name of vegetable avg. rate
------------- -------------------------- -----------------
1 xxxxxxxxxxxxx xx.xx
b) i) Write awk script to simulate wc command.
ii) Write sed command to change doeacc by DOEACC in file FILE and print only those
lines which have been changed.
iii) Write a shell script appends which can take either 1 parameter or two
parameters. If only 1 parameter is provided then it is the name of existing file to which will
be appended any text entered from the keyboard. If a 2nd parameter is provided then it
should be the name of the file which will be used as a source of the text to append to the
first file specified (i.e. instead of using text from keyboard.)
(10+[2+1+2])
8.
a) Write in brief about .exrc file and write a .exrc file mapping the functions keys F1 for help
on vi and F2 for saving modifications if any in current vi environment.
b) elaborate the important roles of the system administrator in Linux/Unix?
c) define the characteristics of DNS in Unix and internet domain structure.
(5+5+5)
9. Write short notes (or do as directed) on any 3 of the following:
a) TCP / IP.
b) The X architecture and running X programs remotely.
c) Process states and transitions.
d) i) structure of command in vi.
i) create a file OFILE from FILE, which is opened under vi session, which should
have 1st fifty lines of FILE at the end and remaining lines in the beginning.
(3x5)
A8-R3 Page six of six January, 2007




( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER DOEACC Society 2007 DOEACC A Level A8-R3 Basic of OS, Unix