← 返回命令列表

Linux command

leave 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Leave in 30 minutes

leave +30

Leave at specific time

leave [1730]

Interactive mode

leave

Cancel leave reminder

kill $(pgrep leave)

说明

leave waits until the specified time and then reminds you to leave. You are reminded 5 minutes and 1 minute before the actual time, at the time itself, and every minute thereafter. It forks and runs in the background, and exits automatically when you log off. If no argument is given, leave prompts with "When do you have to leave?"; an empty reply causes it to exit.

参数

+_hhmm_
Relative time; leave goes off in _hh_ hours and _mm_ minutes from now.

FAQ

What is the leave command used for?

leave waits until the specified time and then reminds you to leave. You are reminded 5 minutes and 1 minute before the actual time, at the time itself, and every minute thereafter. It forks and runs in the background, and exits automatically when you log off. If no argument is given, leave prompts with "When do you have to leave?"; an empty reply causes it to exit.

How do I run a basic leave example?

Run `leave +30` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does +_hhmm_ do in leave?

Relative time; leave goes off in _hh_ hours and _mm_ minutes from now.