crontab



[cronitor](https://texonom.com/cronitor-1bcd5ab897ab4c93b8033a7a686446ca)

### to use bash syntax
```type* * * * * bash -c 'ls -t /mytest | tail -n +2 | xargs rm --'https://stackoverflow.com/questions/56311070/bash-command-with-pipe-not-working-in-crontab/56311820```

```typecron -e0 0 * * * /usr/bin/daily-commitcd ~/Gits/templates/etc/commitsh ./commit.sh@monthly```

- @reboot
- **@hourly - **Run at the start of each hour
- **@daily - **Run every day at midnight UTC
- **@weekly - **Run at every Sunday at midnight UTC
- **@monthly - **Run on the 1st of each month at midnight UTC
- **@yearly - **Run on Jan 1st at midnight UTC
- **@annually - **Same as **@yearly**

> [How to Schedule Tasks on Linux: An Introduction to Crontab Files](https://www.howtogeek.com/101288/how-to-schedule-tasks-on-linux-an-introduction-to-crontab-files/)

> [[tip] 리눅스에서 부팅시 간단하기 시작 프로그램 등록하기](https://hmjkor.tistory.com/420)

> [Cron Helper](https://cron.help/#@daily_reboot)

> [crontab.guru - the cron schedule expression editor](https://crontab.guru/every-night-at-midnight)

> [Bash command with pipe not working in crontab](https://stackoverflow.com/questions/56311070/bash-command-with-pipe-not-working-in-crontab/56311820)






