Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

41
crontab Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# crontab
> Schedule cron jobs to run on a time interval for the current user.
> More information: <https://crontab.guru/>.
- Edit the crontab file for the current user:
`crontab -e`
- Edit the crontab file for a specific user:
`sudo crontab -e -u {{user}}`
- Replace the current crontab with the contents of the given file:
`crontab {{path/to/file}}`
- View a list of existing cron jobs for current user:
`crontab -l`
- Remove all cron jobs for the current user:
`crontab -r`
- Sample job which runs at 10:00 every day (* means any value):
`0 10 * * * {{command_to_execute}}`
- Sample crontab entry, which runs a command every 10 minutes:
`*/10 * * * * {{command_to_execute}}`
- Sample crontab entry, which runs a certain script at 02:30 every Friday:
`30 2 * * Fri {{/absolute/path/to/script.sh}}`