By the end of this chapter, you will be able to:
Mastering these skills ensures you can keep Linux systems reliable and efficient, which is essential for any IT or technical role working with real-world servers and networks.
Managing system services and software packages is critical for cybersecurity professionals working with Linux environments in Kenya. Effective service management ensures that essential security services run reliably, while controlling unnecessary services reduces the attack surface. Equally, adept package management guarantees that security patches and software updates are applied promptly, maintaining system integrity against emerging threats. This chapter focuses on mastering these fundamental skills using prevalent Linux tools and commands relevant to cybersecurity operations in Kenyan institutions such as hospitals, banks, and county government offices.
Service management is a core competency for cybersecurity experts tasked with securing Linux servers. In Kenya's public and private sectors, from county government offices to financial institutions like Equity Bank, ensuring that critical services are properly started, stopped, enabled, or disabled helps in maintaining system availability and security compliance. Understanding how to manipulate services allows professionals to control which processes run at boot or on demand, minimizing vulnerabilities caused by unnecessary services.
Managing services involves controlling their lifecycle to maintain system security and efficiency. The commands used to manipulate services differ depending on the Linux distribution, but systemd is the most common init system in modern Linux used in cybersecurity infrastructure.
Starting a service initiates the program or daemon, allowing it to run in the background and provide its functionality. For example, starting the SSH service on a server in a Nairobi county hospital enables secure remote access for authorized personnel.
sudo systemctl start <service-name>Stopping a service halts the execution of its process, freeing system resources and potentially reducing exposure to threats from unnecessary running services.
sudo systemctl stop <service-name>Enabling a service configures it to start automatically at boot time, ensuring availability after system restarts, which is crucial in environments like banks where uptime is critical.
sudo systemctl enable <service-name>Disabling a service prevents it from starting automatically at boot, which is important for hardening systems by removing unnecessary or risky services.
sudo systemctl disable <service-name>Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountThis chapter focused on managing system services and software packages in Linux environments. It began by exploring how to start, stop, enable, and disable services, which is essential for controlling the behavior of background processes. The discussion then shifted to package management, highlighting the use of tools such as APT, YUM, and DNF for installing and updating software efficiently. The chapter also covered compiling software from source, with particular attention to the GNU Compiler Collection (GCC) as a fundamental tool for building applications. Automation of system maintenance was addressed through the setup of unattended upgrades, ensuring systems remain up to date with minimal manual intervention. Finally, the importance of monitoring services was emphasized by examining methods for checking logs and diagnosing failures, enabling effective troubleshooting and maintaining system reliability. Together, these topics equip learners with comprehensive skills to manage Linux systems proficiently.
systemctl enable and systemctl start in managing system services. (4 marks) At the start of this chapter we promised you would be able to:
Tick each one you can genuinely do.
So, are you there yet?
You're competent when you can confidently do 50% or more of what this chapter promised.
Sign in to record how you're doing.