This commit is contained in:
2021-11-09 10:19:05 +11:00
parent bba7dd206a
commit f97b816624
+8
View File
@@ -2,6 +2,14 @@
## Useful commands and tips
### Split strings
```bash
# split ip list string by comma and get first one
export IP=127.0.0.2,127.0.0.3
echo $IP | cut -d ',' -f1
```
### Create a systemd service
Create a file called `/etc/systemd/system/hello.service`