How to Manage Services in Linux with systemctl


 Introduction


In modern Linux distributions (systemd-based), systemctl is used to manage system services. It replaces older tools like service.



---


Step 1: Check Service Status


systemctl status sshd


➡️ Displays whether the SSH service is running.



---


Step 2: Start and Stop a Service


systemctl start sshd

systemctl stop sshd


➡️ Starts or stops the service immediately.



---


Step 3: Enable Service on Boot


systemctl enable sshd

systemctl disable sshd


➡️ Controls whether the service starts automatically on boot.



---


Conclusion


systemctl is the standard tool for managing services and daemons on Linux systems.



---

Comments