leave Command in Linux with Examples

Many times there comes the situation when we want out terminal to remind us to take a break or to do something important. So in order to do that we have a command in Linux named leave. This command is used to set an alarm in the terminal which would remind you at the mentioned time.

Installing leave command

To install leave tool use the following commands as per your Linux distribution.

In case of Debian/Ubuntu

$sudo apt-get install leave

In case of CentOS/RedHat

$sudo yum install leave

In case of Fedora OS



$sudo dnf install leave

Working with leave command

1. To set a reminder in the terminal at the mentioned time.

leave 2239

to-set-a-reminder-in-terminal

This command will remind you to leave or to do something at sharp 22 hours 39 minutes.

2. To set a reminder in the terminal in the time with reference to the current time.

leave +0002

to-set-timer-with-respect-to-current-time

This command will remind you to leave or to do something at the time 2 minutes after the current time. We use “+” sign to do so.

3. To display the help section of the leave command.

man leave

leave-command-manual

This command will display the help/manual section of the leave command.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.