Chapter 1
System Management
Course: Comptia Linux Xk0 006
Subject: Comptia Linux Xk0 006
Chapter: System Management
1. System Services
System services are background processes (also known as daemons) that run continuously and perform essential functions for the system or applications. These include services like:
- Web servers (e.g., nginx, apache2)
- Database servers (e.g., mysql, postgresql)
- Logging systems (e.g., rsyslog, journald)
- Network management (e.g., NetworkManager, firewalld)
Most modern Linux distributions use systemd as the default init system and service manager. The primary interface for interacting with systemd is the systemctl command.
1. systemctl
systemctl is used to manage systemd services and units. With it, administrators can start, stop, restart, check status, enable/disable on boot, and even mask services to prevent them from starting entirely.
General Syntax:
bash
sudo systemctl
Example:
bash
sudo systemctl restart sshd
This command restarts the SSH daemon, often used after making changes to the SSH configuration file.