Section C
Answer all the questions in this section
[60 marks]
1. Write down the commands to perform the following:
(i) Checkwhich group a user bob belongs to.
[1]
(ii) Create a user called anna with /bin/tcsh shell, Anna Amutenya as a description,
and 31 May 2025 as an expiry date.
[3]
(iii) Changethe permission so that only the user (owner) can have full access(RWX)
to a file called foo.
[2]
2. Explain what the following commands are doing:
(i) chage -I bob
[2]
(ii) rpm -qa
[1]
(iii) cp -R dir3 /opt/python/
[2]
3. Name four responsibilities of the kernel.
[4]
4. You are managing a Linux system that needs to perform daily backups at 2 AM without
any manual intervention. You have a script (backup.sh) ready, but it needs to be
scheduled to run automatically. Write all the steps you are going to take to achieve this?
[4]
5. Name and explain three main components of a Linux system.
[6]
6. What can be installed to keep the system running during a power failure so that it can
shut down gracefully?
[2]
7. What is the difference between :q and :q! in vi text editor?
[4]
8. Name and explain three modes in which VI works.
[6]
9. You are a system administrator, and you want to install a .deb package, but you only
have an .rpm package. What will you do to get a .deb?
[2]
10. Can you kill zombie processes?Justify your answer.
[2]
11. What is the difference between /etc/passwd and /etc/shadow
[4]
12. Name three ways to design a server that is unfriendly to casual users.
[3]
13. Why would you keep a server roolT)well-ventilated and cool?
[2]
14. There are five types of System Calls, name and explain two of them.
[4]
15. Write a shell script that prompts the user to enter the name of a file. The script should
then check if the file exists. If it exists, the script should delete the file. If the file does
not exist, the script should inform the user that the file could not be found.
[6]
4