This commit is contained in:
parent
3d326bb2c5
commit
c804100311
15
docs/cmnds/linux-commands.md
Normal file
15
docs/cmnds/linux-commands.md
Normal file
@ -0,0 +1,15 @@
|
||||
### Send command every X seconds automatically
|
||||
|
||||
Replace {{command}} with your command and {{seconds}} with number of seconds you want between each message.
|
||||
|
||||
```
|
||||
while true;do {{command}};sleep {{seconds}}; done
|
||||
```
|
||||
|
||||
### Sudo with password 1-line
|
||||
|
||||
Replace {{password}} with root password
|
||||
|
||||
```
|
||||
echo {{password}} | sudo -S apt-get update && sudo apt-get upgrade -y
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user