Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-27 00:18:38 +00:00
parent 5871f35fe8
commit 9fe6559a97
123 changed files with 660 additions and 357 deletions

View File

@@ -5,21 +5,34 @@ source: https://github.com/tldr-pages/tldr.git
---
# at
> Executes commands at a specified time.
> More information: <https://manned.org/at.1>.
> Execute commands once at a later time.
> Results will be sent to the users mail.
> More information: <https://manned.org/at>.
- Open an `at` prompt to create a new set of scheduled commands, press `Ctrl + D` to save and exit:
- Start the `atd` daemon:
`systemctl start atd`
- Create commands interactively and execute them in 5 minutes (press `<Ctrl d>` when done):
`at now + 5 minutes`
- Create commands interactively and execute them at a specific time:
`at {{hh:mm}}`
- Execute the commands and email the result using a local mailing program such as Sendmail:
- Execute a command from `stdin` at 10:00 AM today:
`at {{hh:mm}} -m`
`echo "{{command}}" | at 1000`
- Execute a script at the given time:
- Execute commands from a given file next Tuesday:
`at {{hh:mm}} -f {{path/to/file}}`
`at -f {{path/to/file}} 9:30 PM Tue`
- Display a system notification at 11pm on February 18th:
- List all queued jobs for the current user (same as `atq`):
`echo "notify-send '{{Wake up!}}'" | at {{11pm}} {{Feb 18}}`
`at -l`
- View a specied job:
`at -c {{job_number}}`