Added Usefull Commands

This commit is contained in:
NiceDevil
2023-11-26 17:52:58 +01:00
parent 7da17a2efc
commit 22399b3e8a
2 changed files with 32 additions and 1 deletions

View File

@@ -2,3 +2,4 @@
* [Gitea](Gitea/README.md)
* [Neofetch](Neofetch/README.md)
* [Usefull Commands](UsefullCommands/README.md)

View File

@@ -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
```