Dics 1104 Linux Lab
Dics 1104 Linux Lab
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
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)
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
Page 3 of 3