From c804100311ae13a0526fe081783ad3b0953eecef Mon Sep 17 00:00:00 2001 From: sthope Date: Sun, 24 Jul 2022 00:51:13 +0200 Subject: [PATCH] update --- docs/cmnds/linux-commands.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/cmnds/linux-commands.md diff --git a/docs/cmnds/linux-commands.md b/docs/cmnds/linux-commands.md new file mode 100644 index 0000000..cbff4a8 --- /dev/null +++ b/docs/cmnds/linux-commands.md @@ -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 +``` \ No newline at end of file