LinuxCommandLibrary

leave

Set reminder to leave at a specified time

TLDR

Set a reminder at a given time

$ leave [time_to_leave]
copy

Set a reminder to leave at noon
$ leave [1200]
copy

Set a reminder in a specific amount of time
$ leave +[amount_of_time]
copy

Set a reminder to leave in 4 hours and 4 minutes
$ leave +[0404]
copy

SYNOPSIS

leave [quit-time]

PARAMETERS

quit-time
    Sets quitting time in HH:MM (24h), HH:MMam, or HH:MMpm (12h); displays remaining time if omitted.

DESCRIPTION

The leave command is a delightful, tongue-in-cheek utility from the classic BSD games collection, perfect for office drones counting down to freedom. When run without arguments, it checks your preset quitting time and cheerily announces the remaining hours, minutes, and seconds until you can escape—complete with quips like "Only 47 minutes to go! Thank God!" or celebratory messages if you've already overstayed.

To set your quittin' time, pass it as an argument in flexible formats: 24-hour like 17:30 or 12-hour with AM/PM like 5:30pm. It saves the time to ~/.leave.quittime (or falls back to a system default like /usr/games/lib/leave.quittime). Run it after hours? Expect sassy replies like "It's quittin' time!" or gentle ribbing about your workaholic ways.

Primarily a morale booster for sysadmins and terminal enthusiasts, leave adds humor to mundane routines. Install via bsdgames or util-linux packages on most distros. Not for serious scheduling—pure fun!

CAVEATS

Assumes quittime today; past times trigger jokes, not errors. Ignores weekends/holidays. File permissions may affect storage.

FILES

~/.leave.quittime for user setting; /usr/games/lib/leave.quittime as default.

EXAMPLES

leave 17:00 — Set 5 PM quittime.
leave 6pm — Set 6 PM.
leave — Show time left.

HISTORY

Originated in 4.3BSD-Reno (1986) games suite by Edward Wang; ported to Linux via bsdgames package (~1990s). Remains in util-linux or bsdutils on modern distros.

SEE ALSO

fortune(6), cowsay(1), banner(1)

Copied to clipboard