From 3555f3aa9216678bc6826ce62c41b6994b2f5d47 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Sun, 17 Oct 2021 01:32:59 +0300 Subject: [PATCH] ref: README.md --- README.md | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 4e050db..beda5dc 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,7 @@ ## Content * [Project description](#chapter-0) * [Installation](#chapter-1) -* [SSH](#chapter-2) -* [Tips](#chapter-3) +* [Tips](#chapter-2) @@ -38,17 +37,6 @@ rm -rf BashConfig -## SSH - -Create ssh key on local device - -1. `ssh-keygen` -2. Save to `~/.ssh` -3. Enter passphrase -4. Copy content of `~/.ssh/id_rsa.pub` key to remote `~/.ssh/authorized_keys` - - - ## Tips @@ -71,21 +59,21 @@ Create ssh key on local device ### Autostart * create ```/etc/systemd/system/.service``` ```bash -sudo vim /etc/systemd/system/.service +sudo vim /etc/systemd/system/.service # create custom service sudo systemctl daemon-reload -sudo systemctl start .service -sudo systemctl status .service -sudo systemctl enable .service +sudo systemctl start .service # start custom service +sudo systemctl status .service # check status +sudo systemctl enable .service # autostart custom service ``` ### Cron ```crontab -e``` -```0 0 1 1 * command.sh``` - Every year in 1 January 00:00:00 \ -```*/1 * * * * command.sh``` - Every minute\ -```0 */3 * * 2,5 command.sh``` - One time per 3 hours in Tue and Fri\ -```0 0,12 1 */2 * command.sh``` - At minute 0 past hour 0 and 12 on day-of-month 1 in every 2nd month +```0 0 1 1 * script.sh``` - Every year in 1 January 00:00:00 \ +```*/1 * * * * script.sh``` - Every minute\ +```0 */3 * * 2,5 script.sh``` - One time per 3 hours in Tue and Fri\ +```0 0,12 1 */2 * script.sh``` - At minute 0 past hour 0 and 12 on day-of-month 1 in every 2nd month