leave
Set reminder to leave at a specified time
TLDR
Set a reminder at a given time
Set a reminder to leave at noon
Set a reminder in a specific amount of time
Set a reminder to leave in 4 hours and 4 minutes
SYNOPSIS
leave [time]
PARAMETERS
time
The time at which the reminder should be displayed. Can be an absolute time (e.g., 16:00), a relative time (e.g., +15m), or "now" for immediate execution.
DESCRIPTION
The leave command is a simple utility that reminds you to leave at a specified time. It takes a time as input and, at that time, displays a message on your terminal. It can be useful for setting reminders when working on a console or terminal for extended periods.
leave accepts time in various formats, including absolute times (e.g., 17:30) and relative times (e.g., +30m for 30 minutes from now). The reminder is delivered via a message sent to your terminal using `write`. Thus, it relies on `mesg y` being set in your terminal for the message to be delivered successfully. If `mesg n` is set, you may not receive the reminder.
CAVEATS
The reminder is sent using the `write` command, so it is affected by the `mesg` setting of the terminal. If `mesg n` is set, the reminder will not be displayed.
The leave command is fairly basic and does not support complex scheduling or reminders.
TIME FORMATS
The leave command understands various time formats. Absolute times should be entered in a 24-hour format (HH:MM). Relative times should start with a '+' character, followed by a number and a unit (e.g., +30m for 30 minutes, +1h for 1 hour). "now" can also be used to execute the command immediately, but will not send a message.
MESSAGE DELIVERY
The reminder is sent using the `write` command. Ensure your terminal settings allow messages to be delivered (i.e., `mesg y`). You can check your current `mesg` setting using the `mesg` command without arguments.
HISTORY
The leave command has been a part of Unix-like operating systems for a very long time. It provides a basic reminder functionality.