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