0% found this document useful (0 votes)
25 views3 pages

Dics 1104 Linux Lab

The document outlines the syllabus and examination structure for the Diploma in Computer Science course at St. Paul's University, specifically focusing on the Linux Lab module. It includes instructions for answering questions, covering topics such as Linux commands, file systems, user accounts, and package management. The exam consists of compulsory and optional sections, testing students' understanding of various Linux functionalities and commands.

Uploaded by

colindeveloper4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

Dics 1104 Linux Lab

The document outlines the syllabus and examination structure for the Diploma in Computer Science course at St. Paul's University, specifically focusing on the Linux Lab module. It includes instructions for answering questions, covering topics such as Linux commands, file systems, user accounts, and package management. The exam consists of compulsory and optional sections, testing students' understanding of various Linux functionalities and commands.

Uploaded by

colindeveloper4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

ST.

PAUL’S UNIVERSITY
S

UN
P A U L ’ Private Bag 00217 Limuru, 00217, KENYA

I VE R S I TY
Tel: 020-2020505/2020510/0728-669000/0736-424440
.
S T

SE R TY
VANT
S OF GO D AND HUMANI

SCHOOL OF COMMUNICATION AND COMPUTER STUDIES


Diploma IN COMPUTER SCIENCE
MAY - AUGUST 2022/2023 SEMESTER
DICS 1104: LINUX LAB

DATE: AUGUST, 2023 TIME: 2 hours


INSTRUCTIONS
Section a is compulsory. Answer any other two questions in section b.

SECTION A (COMPULSORY – this section carries 30 Marks)


Question One
a. Explain how to:
i. Access Linux terminal while working on the desktop. (3 Marks)
ii. Terminate a process in linux (3 Marks)
b. Describe the usage of the following commands:
i. Sudo command (2 Marks)
ii. Ifconfig (2 Marks)
iii. Pstree (2 Marks )

c. Discuss any TWO file systems implemented in LINUX (4 marks)


d. Distinguish between absolute and relative paths in Linux. Provide examples for each.
(3 Marks)
e. Write a shell command that lists all files in the current directory and its subdirectories, displaying the file
size and permissions. (3 Marks)
f. Discuss the purpose of the chmod command in Linux? Provide an example of how to
use it to change the permissions of a file. (3 Marks)
g. Differentiate between a foreground process and a background process in Linux.
How can you start a process in the background? (3 Marks)
h. Describe the purpose of the grep command in Linux. Provide an example of using
Grep command to search for a specific pattern in a file. (2 Marks)

Page 1 of 3
SECTION B (answer ANY TWO. Each question carries 20 Marks)
Question Two
a. Explain the purpose and syntax of the "ls" command. Provide examples of using different options.
(4 Marks)
b. Discuss why Linux as an operating system is referred to "GNU/Linux." (3 Marks)
c. Explain importance of installing Linux on virtual hardware (3 Marks)
d. Explain the Four types of File Editors used in linux. (4 Marks)
e. Discuss why although under Linux there are GUIs (graphical user interfaces), where you can point and
click and drag, and hopefully get work done without first reading lots of documentation yet most linux
users use the traditional Unix environment is a CLI (command line interface), where you type commands
to tell the computer what to do. (4 Marks)

f. Interpret the following expressions and write the commands required to perform the functionality:
i. access the command line or run option to put the commands into the system
ii. add a directory permanently to the path you can edit / create the file .bashrc
(2 Marks)

Question Three
a. Interpret the script below: (4 Marks)

# create user with home directory

sudo useradd -m newuser

# assign password to user

sudo passwd newuser

b. Explain the concept of package management in Linux. How do you install, update, and remove packages
using the package manager? (6 Marks)
c. Describe the process of monitoring system resources (CPU, memory, disk usage) in Linux using
command-line tools. (6 Marks)
d. Discuss the purpose of the "ping" command and how is its syntax structured. Provide an example of its
usage. (4 Marks)

Question Four
a) Explain the purpose of user accounts and groups in Linux. Illustrate the difference between a user
account and a group? (6 Marks)
b) Cite the role of the /etc/passwd and /etc/shadow files in Linux, analyze the type of information they
contain. (4 Marks)
c) Explain the concept of file permissions and how they are related to user accounts and groups in Linux.
(4 Marks)

Page 2 of 3
d) Describe the steps involved in creating a new group in Linux using the command line. (4 Marks)

e) Discuss the purpose of the su command in Linux? How does it differ from the sudo command?

(2 Marks)

Question Five

a. Describe the following Linux file system commands:


i. ls
ii. cd
iii. mkdir
iv. touch
v. rm
(5 Marks)
b. Explain the purpose of the "mount" command in Linux? Provide an example of how to mount a file
system. (4 Marks)
c. Define a package manager in Linux, and explain its purpose? (3 Marks)
d. Explain the significance of package dependencies in Linux package management. (3 Marks)
e. Explain the purpose of the "netstat" command in Linux? Provide an example
command and explain its output. (5 Marks)

Page 3 of 3

You might also like