Added Usefull Commands
This commit is contained in:
30
Linux/UsefullCommands/README.md
Normal file
30
Linux/UsefullCommands/README.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user