You are on page 1of 11

PART – A (10 marks)

I. Multiple choice Questions. Choose (tick / circle) the correct answer: (6 x 0.5 = 3
marks)

Q 1. Which tar command option is used to restore the files of an archive file? [0.5]

a. Cvf b. tvf

c. xvf d. ovf

Q 2. Which file contains a list of devices and the points at which they will be attached [0.5]
to the main filesystem?

a. /etc/fstab b. /fstab

c. /usr/lib d. /lib

Q 3. Which one is the content viewer for the JPEG image in Red Hat Distribution of [0.5]
Linux?

a. Xv b. xdvi

c. ghost view d. netscape

Q 4. Which of the following daemon provides printing services? [0.5]

a. telnet & sshd b. lpd

c. httpd d. smbd

Q 5. Which option installs packages such as graphic applications, network client [0.5]
tools and so on during the configuration of Linux?

a. Workstation b. Server System

c. Custom system d. None of the mentioned.

Q 6. Which one is the Specification that describes system calls used by the Linux? [0.5]

a. POSIX.1 b. POSIX.2

Page 1 of 11 Moderator:
c. POSIX.3 d. None of the mentioned

II. Mark TRUE/FALSE (6 x 0.5 = 3 marks)

Q 7. There can be only one job in the foreground at any time. [0.5]

Q 8. The patch level of the library libcrypt-2-1-5.so is 2. [0.5]

Q 9. The crond does not run regular system administration tasks (related with kernel [0.5]
module) automatically.

Q 10. Any Linux system may act either as NFS server or NFS client. [0.5]

Q 11. A command output can be stored in a file by using input redirection operator. [0.5]

Q 12. The inetd daemon does not start by default each time you start your system. [0.5]

III. Answer the following Questions: (2 x 1 = 2 marks)

Q 13. Explain the following options that you have to choose during the installation of [1]
LINUX.

Page 2 of 11 Moderator:
[4*0.25]

text <ENTER>

expert <ENTER>

linux rscue <ENTER>

linux dd <ENTER>

Q 14. Write any two differences between extended and primary partition. [1]
[2*0.5]

___________________________ End of Part A ___________________________

PART – B (14 marks)


Q 15. a. Explain the different types of files in LINUX. [6]
(2)

Page 3 of 11 Moderator:
b. Write down the difference among the following.
I. smbd & nmbd.
(1)

II. find and locate command. (1)

c. What is the purpose of samba, explain in detail? (2)

Page 4 of 11 Moderator:
Q 16. a. What is Xdm? Write the steps for configuring Xdm. (0.5+1.5) [5]

b. What is NFS? How it works, explain with an example? (0.5+2.5)

Page 5 of 11 Moderator:
Q 17. a. What are the parts of RPM? (1.5) [5]

b. What is the difference between foreground and background, explain with an


example? (0.75+0.75)

Page 6 of 11 Moderator:
c. What is the naming convention of Packages used by RPM, explain with in an
example?
(1+1)

___________________________ End of Part B ___________________________


PART – C (16 marks)

Q 18. a. Write a script to store the size of a file passed as command line arguments in a [7]
variable SIZE.

Page 7 of 11 Moderator:
(2)

b. What is the output of the following shell script for the sample run?
(2)

Shell Script

#! bin/sh Sample Run

X=5 $ sh ABC 5 7 8 9

echo 2+4

echo $2+$4

echo $(($1+$X))

echo $0

c. Write a shell script to input the name of a file or directory from the user and
check , whether it is a file or directory,

Page 8 of 11 Moderator:
i. if it is a file display the contents of the file,
ii. if it is a directory show the size of directory in Kilo Bytes (3)

Q 19. Write a script AVERAGE for Calculating the average of integer numbers passed on [4]
command line arguments. Display the error message if number of arguments is less
than 5.

Q 20. a. Write the command to search any pattern that is of 9 characters and starting [5]
from XY in all the files in the current directory.
(1)

Page 9 of 11 Moderator:
b. If server4 is offering its /XYZ directory via NFS, Write the commands to
mounted it locally.
(1.5)

c. Write a command to display the third line from the top of a file named IN.
(1)

d. Let's say you are the owner of a file named Data File, write a command to set
its permissions so that:
I. The user cannot read, write, and execute it;
II. Members of your group can execute it.
III. Others may only read it.

Page 10 of 11 Moderator:
(1.5)

__________________ End of the Question paper __________________

Page 11 of 11 Moderator:

You might also like