Skip to content
Related Articles

Related Articles

leave Command in Linux with Examples
  • Last Updated : 22 Jun, 2020

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
Recommended Articles
Page :