Files
2023-11-26 17:52:58 +01:00

30 lines
491 B
Markdown

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