mirror of
https://github.com/wahyd4/knowledge.git
synced 2026-08-09 13:15:52 +10:00
update
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user