Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Linux Question Paper and Answers Oct 2021

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

B.

Sc DEGREE (CBCS) EXAMINATIONS, OCTOBER 2021


Fourth Semester
Core Course - CS4CRT10 - LINUX ADMINISTRATION
B.Sc Computer Science Model III Admission
Time: 3 Hours Max. Marks : 80
Part A
Answer any six questions.Each question carries 3 marks.
1. Which are the major types of shells?
- Bourne Again SHell (BASH), Public Domain Korn shell (PDKSH), TCSH shell, C shell,
Z shell.
2. What is the difference between home directory and working directory? Each user has
his/her own home directory, identified by the appropriate login name. When you log into the
system, you are placed within your home directory. The current working directory is the
directory in which the user is currently working in.
3. Which are the commands used to create files in Linux?
Touch, cat, echo with redirection
4. Define kill and killall commands.
killall - terminates running processes based on name.
kill - terminates processes based on Process ID.
5. Explain the command : $ find /home/Steve -name "jan"
Search for “jan” file in /home/Steve directory
6. How can you find the product of two numbers using expr command in Linux?
Sum = `expr $a \* $b`
7. What is a shell environment?
Defined by environment variables. Describe System environment variables and user defined
variables.
8. Give syntax of case statement.
case var in
pattern1)
Statement(s) to be executed if pattern1 matches
;;
pattern2)
Statement(s) to be executed if pattern2 matches
;;
pattern3)
Statement(s) to be executed if pattern3 matches
;;
*)
Default condition to be executed
;;
esac

9. Distinguish between groupmod -g and groupmod -n command in Linux.


-n option used to change the group name, used to change group ID
10. Define mount point.
The mount point is the place in the directory tree where you can find and access the file
system.

11. What is a filter?


Filters are commands that read data, perform operations on that data, and then send the
results to the standard output. Filters generate different kinds of output- generate information
about the input, - output selected parts of the input, and/or- output an entire version of the
input, but in a modified way. Simple filter commands – pr, head, tail, cut, sort..
12. What is samba?
Samba effectively enables you to use a Linux server as a network server for a group of
Windows machines operating on a Windows network.
On Linux systems, an smbfs file system enables you, in effect, to mount a remote
SMB-shared directory on to your own file system.You can then access it as if it were a
directory on your local system.

Part B
Answer any Four questions. Each question carries 8 marks.
13. Explain features of Linux operating system.
Portable - Open Source - Multi-User -Multiprogramming - Hierarchical File System - Shell -
Security
14. Write short note on Linux Standard Directories.
Standard directories reserved for system use. The root directory that begins the Linux file
structure contains several system directories. The system directories contain files and
programs used to run and maintain the system. Many contain other subdirectories with
programs for executing specific features of Linux. (4 marks) specify function of standard
directories (/home, /bin, /usr, /usr/bin, /usr/sbin, /etc …) (4marks)
15. Explain scheduling of a process with cron command.
automates the scheduled task at a predetermined time. It is a daemon process, which runs as a
background process and performs the specified operations at the predefined time when a
certain event or condition is triggered without the intervention of a user. ( Definition 4
marks). Syntax with description of different options (4 marks)
16. What are editors? Explain vi editors.
Editor definition 2 marks, vi editor different modes - Command mode: Insert mode and
Command line mode: and different commands -6 marks
17. Describe the use of conditional statement in shell scripts with suitable example. 1. if
statement 2. if-else statement 3. if..elif..else..fi statement (Else If ladder) 4.
if..then..else..if..then..fi..fi..(Nested if) 5. switch statement , syntax with suitable example
18. Explain different types of variables in shell script.
Explain user defined environment variables and system defined environment variables (4
marks each)
19. Discuss the various process of system performance monitoring.-
Describe performance monitoring commands - top, ps, du,get system information- uname,
hostname
20. What is DNS Server?
Description, Advantages different types of DNS Servers
21.Explain FTP in Detail.
The File Transfer Protocol (FTP) is designed to transfer large files across a network from one
system to another, FTP works on a client/server model. Describe anonymous ftp file server,
permission to restrict remote users, FTP server tools

Part C
Answer up to three questions.Each question carries15 marks (Maximum marks 30).
22. Explain any five file processing commands in Linux with its syntax and suitable
examples.
23. a)Explain function in shell with suitable example(6 marks). How will you pass
parameters in shell?(4 marks)b)Write a shell script to copy all files with .c extension in the
current working directory to a sub directory.(5 marks)
24.Explain the common administrative tasks in Linux. – listing 3marks explanation 12 marks
25.Write a note on Apache Server.(15 marks)

You might also like