From 8205d28d7a55606122e313760efb5c5b7258f4d1 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Tue, 27 Jun 2023 09:10:56 +0100 Subject: [PATCH] add systemd to linux basics --- guides/linux-basics.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guides/linux-basics.md b/guides/linux-basics.md index da9ab3c..9e23c6b 100644 --- a/guides/linux-basics.md +++ b/guides/linux-basics.md @@ -81,3 +81,13 @@ Make sure to allow SSH before enabling the firewall, otherwise you will be locke - Deny a port: `sudo ufw deny ` - Allow a service: `sudo ufw allow ` - Deny a service: `sudo ufw deny ` + +## Service Management (Systemd) + +- Start a service: `sudo systemctl start ` +- Stop a service: `sudo systemctl stop ` +- Check the status of a service: `sudo systemctl status ` +- Restart a service: `sudo systemctl restart ` +- Enable a service (start on boot): `sudo systemctl enable ` +- Disable a service (stop on boot): `sudo systemctl disable ` +- Reload a service: `sudo systemctl reload `