From 22399b3e8a0dc39c76365955c60fed05143d85a6 Mon Sep 17 00:00:00 2001 From: NiceDevil <17103076+nicedevil007@users.noreply.github.com> Date: Sun, 26 Nov 2023 17:52:58 +0100 Subject: [PATCH] Added Usefull Commands --- Linux/README.md | 3 ++- Linux/UsefullCommands/README.md | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 Linux/UsefullCommands/README.md diff --git a/Linux/README.md b/Linux/README.md index a8cbff4..4da9d9d 100644 --- a/Linux/README.md +++ b/Linux/README.md @@ -1,4 +1,5 @@ # Choose from the list * [Gitea](Gitea/README.md) -* [Neofetch](Neofetch/README.md) \ No newline at end of file +* [Neofetch](Neofetch/README.md) +* [Usefull Commands](UsefullCommands/README.md) \ No newline at end of file diff --git a/Linux/UsefullCommands/README.md b/Linux/UsefullCommands/README.md new file mode 100644 index 0000000..7bea3d0 --- /dev/null +++ b/Linux/UsefullCommands/README.md @@ -0,0 +1,30 @@ +# Usefull linux commands + +### systemctl stuff + +**Enable autostart of service** +```bash +sudo systemctl enable SERVICENAME +``` + +If you wamt to start and enable it in a oneliner, here it is. +```bash +sudo systemctl enable --now SERVICENAME +``` + +**Disable autostart of service** +```bash +sudo systemctl disable SERVICENAME +``` + +**List all services** +```bash +sudo systemctl list-units --type service +``` + +### open-rc stuff + +**Enable autostart of service** +```bash +sudo rc-update add SERVICENAME +``` \ No newline at end of file